mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-22 21:53:03 +03:00
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:
parent
40807fc07d
commit
5362fc0b6a
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user