summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefGeneral.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-06 15:15:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-06 16:13:44 -0700
commite71b049498eaae05f7686445be320e90ca2f630e (patch)
tree335174bac350b3f1aaf18db58addcab619bba992 /core/settings/qPrefGeneral.cpp
parentd88f86579372d356a7fd33e9fadb38a76b44c757 (diff)
downloadsubsurface-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/qPrefGeneral.cpp')
-rw-r--r--core/settings/qPrefGeneral.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/settings/qPrefGeneral.cpp b/core/settings/qPrefGeneral.cpp
index 8dfe67668..67df7b3fb 100644
--- a/core/settings/qPrefGeneral.cpp
+++ b/core/settings/qPrefGeneral.cpp
@@ -67,7 +67,7 @@ void qPrefGeneral::set_default_file_behavior(enum def_file_behavior value)
void qPrefGeneral::disk_default_file_behavior(bool doSync)
{
if (doSync) {
- qPrefPrivate::propSetValue(group + "/default_file_behavior", prefs.default_file_behavior);
+ qPrefPrivate::propSetValue(group + "/default_file_behavior", prefs.default_file_behavior, default_prefs.default_file_behavior);
} else {
prefs.default_file_behavior = (enum def_file_behavior)qPrefPrivate::propValue(group + "/default_file_behavior", default_prefs.default_file_behavior).toInt();
if (prefs.default_file_behavior == UNDEFINED_DEFAULT_FILE)