summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-26 17:11:12 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-08-27 11:40:45 -0700
commitf745a25cb7ee9dd2ee4e5e4299c04dc7a14ad35e (patch)
treedeae13c24b5e0bbc1c36a65bb19a6ff4db4caf37 /core/subsurface-qt
parent9b2404fcb4b360a12a8f997a4b9111e5f44bf444 (diff)
downloadsubsurface-f745a25cb7ee9dd2ee4e5e4299c04dc7a14ad35e.tar.gz
Settings update: Remember to load the "UpdateManager" settings
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index 09246b508..16e7ab7f9 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -1933,6 +1933,11 @@ void SettingsObjectWrapper::load()
prefs.conservatism_level = s.value("conservatism", prefs.conservatism_level).toInt();
s.endGroup();
+ s.beginGroup("UpdateManager");
+ prefs.update_manager.dont_check_for_updates = s.value("DontCheckForUpdates").toBool();
+ prefs.update_manager.last_version_used = copy_string(qPrintable(s.value("LastVersionUsed").toString()));
+ prefs.update_manager.next_check = copy_string(qPrintable(s.value("NextCheck").toString()));
+ s.endGroup();
}
void SettingsObjectWrapper::sync()