fix(core): ignore fixed font size setting when migrating from 0.6.0

The actual bug was fixed back in 0.6.1 (#903).

Fixes #1054.
This commit is contained in:
Oleg Shparber 2019-04-04 01:16:34 -04:00
parent 40807fc07d
commit 5362fc0b6a

View File

@ -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
//