From e71b049498eaae05f7686445be320e90ca2f630e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Sep 2018 15:15:19 -0700 Subject: qPref: only save settings that aren't the default This brings us back to the previous behavior. Signed-off-by: Dirk Hohndel --- core/settings/qPrefDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/settings/qPrefDisplay.cpp') 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(); } -- cgit v1.2.3-70-g09d2