From c0ee95995f883a1b227119ec3a7ebf23f90e4212 Mon Sep 17 00:00:00 2001 From: Jehan Date: Fri, 25 Nov 2016 04:25:41 +0100 Subject: [PATCH] app: save menurc after having deleted all the displays. Some actions are not meant to be saved, in particular the "windows-display-*" which have only a meaning during a same session since display IDs are session-dependent. So let display deletion happen first so that proper cleaning of action is done when writing menurc. --- app/gui/gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/gui/gui.c b/app/gui/gui.c index 84582eb0fd..2302654f96 100644 --- a/app/gui/gui.c +++ b/app/gui/gui.c @@ -681,9 +681,6 @@ gui_exit_callback (Gimp *gimp, if (gui_config->save_session_info) session_save (gimp, FALSE); - if (gui_config->save_accels) - menus_save (gimp, FALSE); - if (gui_config->save_device_status) gimp_devices_save (gimp, FALSE); @@ -696,6 +693,9 @@ gui_exit_callback (Gimp *gimp, gimp_displays_delete (gimp); + if (gui_config->save_accels) + menus_save (gimp, FALSE); + gimp_tools_save (gimp, gui_config->save_tool_options, FALSE); gimp_tools_exit (gimp);