Call fm_config_save() if terminal setting was changed on migration.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 27 Feb 2014 17:31:18 +0000 (19:31 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 27 Feb 2014 17:31:18 +0000 (19:31 +0200)
src/configurator.c

index 1799899..62762e2 100644 (file)
@@ -1534,8 +1534,12 @@ void load_global_config()
         logout_cmd = g_key_file_get_string( kf, command_group, "Logout", NULL );
         /* check for terminal setting on upgrade */
         if (fm_config->terminal == NULL)
+        {
             fm_config->terminal = g_key_file_get_string(kf, command_group,
                                                         "Terminal", NULL);
+            if (fm_config->terminal != NULL) /* setting changed, save it */
+                fm_config_save(fm_config, NULL);
+        }
         /* this is heavy but fortunately it will be ran only once: on upgrade */
         fm = g_key_file_get_string(kf, command_group, "FileManager", NULL);
         if (fm)