[gnome-commander/get_rid_of_xml] Save devices in gSettings after loading them from depricated file



commit 8008b2667aa84ca41aa1e21d32b14b7dd1853e7d
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Nov 18 22:07:17 2018 +0100

    Save devices in gSettings after loading them from depricated file

 src/gnome-cmd-data.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 608fba08..02e7069d 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -3417,6 +3417,8 @@ void GnomeCmdData::load()
     priv->con_list->lock();
     if (load_devices (DEVICES_FILENAME) == FALSE)
         load_devices_from_gsettings();
+    else // This is done for migration to gSettings. Can be deleted in gcmd 1.9.
+        save_devices_via_gsettings(options.gcmd_settings->general, GCMD_SETTINGS_DEVICES);
 
     gchar *xml_cfg_path = config_dir ? g_build_filename (config_dir, PACKAGE ".xml", NULL) : 
g_build_filename (g_get_home_dir (), "." PACKAGE, PACKAGE ".xml", NULL);
 


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