Skip to content

Commit

Permalink
fix(core): ignore fixed font size setting when migrating from 0.6.0
Browse files Browse the repository at this point in the history
The actual bug was fixed back in 0.6.1 (#903).

Fixes #1054.
  • Loading branch information
trollixx committed Apr 4, 2019
1 parent 40807fc commit 5362fc0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/libs/core/settings.cpp
Expand Up @@ -273,6 +273,18 @@ void Settings::migrate(QSettings *settings) const
const QString version = settings->value(QStringLiteral("version")).toString();
settings->endGroup();

//
// 0.6.0
//

// Unset content.default_fixed_font_size.
// The causing bug was 0.6.1 (#903), but the incorrect setting still comes to haunt us (#1054).
if (version == QLatin1String("0.6.0")) {
settings->beginGroup(GroupContent);
settings->remove(QStringLiteral("default_fixed_font_size"));
settings->endGroup();
}

//
// Pre 0.4
//
Expand Down

0 comments on commit 5362fc0

Please sign in to comment.