From df2dfa470612c1cb25ef2286577e2a56f8a8700f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 1 Nov 2016 14:08:59 +0100 Subject: Fix bug where the Font setting was ignored Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 1 + desktop-widgets/preferences/preferences_defaults.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 81f6237a3..ec5e04100 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -1834,6 +1834,7 @@ void DisplaySettingsObjectWrapper::setDivelistFont(const QString& value) return; QSettings s; + s.beginGroup(group); s.setValue("divelist_font", value); if (!subsurface_ignore_font(newValue.toUtf8().constData())) { diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp index 2ebbe5467..60b3d3afd 100644 --- a/desktop-widgets/preferences/preferences_defaults.cpp +++ b/desktop-widgets/preferences/preferences_defaults.cpp @@ -88,8 +88,6 @@ void PreferencesDefaults::syncSettings() general->setDefaultFileBehavior(CLOUD_DEFAULT_FILE); auto display = SettingsObjectWrapper::instance()->display_settings; - - //TODO: Verify the 'save or remove special' feature for the divelist font and the font size. display->setDivelistFont(ui->font->currentFont().toString()); display->setFontSize(ui->fontsize->value()); display->setDisplayInvalidDives(ui->displayinvalid->isChecked()); -- cgit v1.2.3-70-g09d2