Fix bug where the Font setting was ignored

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-11-01 14:08:59 +01:00 committed by Dirk Hohndel
parent d3e775e690
commit df2dfa4706
2 changed files with 1 additions and 2 deletions

View file

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

View file

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