From 828f608b2b1e5f7754c39bf60dccdabca78c3fb6 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 7 Nov 2017 13:54:33 +0100 Subject: Save font_size in correct group A change of the font_size in preferences ended up in the wrong preferences group (the GeneralSettings group), appearing to the user as a non-saved preference. Fix is simple. Just set the the correct group before saving a change in font_size. Fixes: #780 Signed-off-by: Jan Mulder --- core/subsurface-qt/SettingsObjectWrapper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp') diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index bc941f58d..3787d27dd 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -1906,6 +1906,7 @@ void DisplaySettingsObjectWrapper::setFontSize(double value) return; QSettings s; + s.beginGroup(group); s.setValue("font_size", value); prefs.font_size = value; QFont defaultFont = qApp->font(); -- cgit v1.2.3-70-g09d2