diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-06 15:15:19 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-06 16:13:44 -0700 |
commit | e71b049498eaae05f7686445be320e90ca2f630e (patch) | |
tree | 335174bac350b3f1aaf18db58addcab619bba992 /core/settings/qPrefUpdateManager.cpp | |
parent | d88f86579372d356a7fd33e9fadb38a76b44c757 (diff) | |
download | subsurface-e71b049498eaae05f7686445be320e90ca2f630e.tar.gz |
qPref: only save settings that aren't the default
This brings us back to the previous behavior.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefUpdateManager.cpp')
-rw-r--r-- | core/settings/qPrefUpdateManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/settings/qPrefUpdateManager.cpp b/core/settings/qPrefUpdateManager.cpp index 4623c8a52..15ede6c5d 100644 --- a/core/settings/qPrefUpdateManager.cpp +++ b/core/settings/qPrefUpdateManager.cpp @@ -57,7 +57,7 @@ void qPrefUpdateManager::set_next_check(const QDate& value) void qPrefUpdateManager::disk_next_check(bool doSync) { if (doSync) - qPrefPrivate::propSetValue(group + "/NextCheck", prefs.update_manager.next_check); + qPrefPrivate::propSetValue(group + "/NextCheck", prefs.update_manager.next_check, default_prefs.update_manager.next_check); else prefs.update_manager.next_check = qPrefPrivate::propValue(group + "/NextCheck", 0).toInt(); } |