summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDisplay.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/qPrefDisplay.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/qPrefDisplay.cpp')
-rw-r--r--core/settings/qPrefDisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/qPrefDisplay.cpp b/core/settings/qPrefDisplay.cpp
index ecfd5e70b..ef4d8e1b8 100644
--- a/core/settings/qPrefDisplay.cpp
+++ b/core/settings/qPrefDisplay.cpp
@@ -90,7 +90,7 @@ void qPrefDisplay::set_divelist_font(const QString &value)
void qPrefDisplay::disk_divelist_font(bool doSync)
{
if (doSync)
- qPrefPrivate::propSetValue(group + "/divelist_font", prefs.divelist_font);
+ qPrefPrivate::propSetValue(group + "/divelist_font", prefs.divelist_font, default_prefs.divelist_font);
else
setCorrectFont();
}
@@ -110,7 +110,7 @@ void qPrefDisplay::set_font_size(double value)
void qPrefDisplay::disk_font_size(bool doSync)
{
if (doSync)
- qPrefPrivate::propSetValue(group + "/font_size", prefs.font_size);
+ qPrefPrivate::propSetValue(group + "/font_size", prefs.font_size, default_prefs.font_size);
else
setCorrectFont();
}