mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
Destroy editors first to avoid disconnection from dead signals.
This commit is contained in:
parent
2835d642a0
commit
100894ceea
@ -297,12 +297,17 @@ int App::run()
|
|||||||
// Run the GUI main message loop
|
// Run the GUI main message loop
|
||||||
gui_run();
|
gui_run();
|
||||||
|
|
||||||
|
// Uninstall support to drop files
|
||||||
uninstall_drop_files();
|
uninstall_drop_files();
|
||||||
|
|
||||||
// Remove the root-menu from the menu-bar (because the rootmenu
|
// Remove the root-menu from the menu-bar (because the rootmenu
|
||||||
// module should destroy it).
|
// module should destroy it).
|
||||||
menubar->setMenu(NULL);
|
menubar->setMenu(NULL);
|
||||||
|
|
||||||
|
// Delete all editors first because they used signals from other
|
||||||
|
// widgets (e.g. color bar).
|
||||||
|
jwidget_free(box_editors);
|
||||||
|
|
||||||
// Destroy the top-window
|
// Destroy the top-window
|
||||||
jwidget_free(top_window);
|
jwidget_free(top_window);
|
||||||
top_window = NULL;
|
top_window = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user