[gimp] app: save menurc after having deleted all the displays.



commit c0ee95995f883a1b227119ec3a7ebf23f90e4212
Author: Jehan <jehan girinstud io>
Date:   Fri Nov 25 04:25:41 2016 +0100

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index 84582eb..2302654 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]