mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
d3e775e690
commit
df2dfa4706
2 changed files with 1 additions and 2 deletions
|
@ -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())) {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue