diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-11-01 14:08:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-01 09:37:52 -0700 |
commit | df2dfa470612c1cb25ef2286577e2a56f8a8700f (patch) | |
tree | d7b3ed4bf406c6d1329671b36e54fdeb95dfd9ba | |
parent | d3e775e6903f4470b1049a399092a0106ceedd86 (diff) | |
download | subsurface-df2dfa470612c1cb25ef2286577e2a56f8a8700f.tar.gz |
Fix bug where the Font setting was ignored
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 1 | ||||
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.cpp | 2 |
2 files changed, 1 insertions, 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()); |