From f745a25cb7ee9dd2ee4e5e4299c04dc7a14ad35e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 26 Aug 2016 17:11:12 -0300 Subject: Settings update: Remember to load the "UpdateManager" settings Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v1.2.3-70-g09d2