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 <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-11-07 13:54:33 +01:00
parent 3ab016bfda
commit 828f608b2b

View file

@ -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();