Move sync_options_with_current_state() call to save_options().
authorLaurent Monin <geeqie@norz.org>
Sun, 31 Aug 2008 08:59:39 +0000 (08:59 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 31 Aug 2008 08:59:39 +0000 (08:59 +0000)
src/main.c
src/rcfile.c

index 7f0e1f9..78ed59c 100644 (file)
@@ -612,7 +612,6 @@ static void exit_program_final(void)
 
        collect_manager_flush();
 
-       sync_options_with_current_state(options);
        save_options(options);
        keys_save();
        accel_map_save();
index 6d921d0..c117247 100644 (file)
@@ -643,6 +643,8 @@ void save_options(ConfOptions *options)
 {
        gchar *rc_path;
 
+       sync_options_with_current_state(options);
+
        rc_path = g_build_filename(homedir(), GQ_RC_DIR, RC_FILE_NAME, NULL);
        save_options_to(rc_path, options);
        g_free(rc_path);