Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/preferences/upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,14 +628,18 @@ UserSettingsPointer Upgrade::versionUpgrade(const QString& settingsPath) {
// If additional upgrades are added for later versions, they should go before
// this block and cleanVersion should be bumped to the latest version.
const QVersionNumber cleanVersion(2, 6, 0);
if (QVersionNumber::fromString(configVersion) >= cleanVersion) {
if (QVersionNumber::fromString(configVersion) >= cleanVersion &&
configVersion != VersionStore::FUTURE_UNSTABLE) {
// No special upgrade required, just update the value.
configVersion = VersionStore::version();
config->set(ConfigKey("[Config]", "Version"), ConfigValue(VersionStore::version()));
}

if (configVersion == VersionStore::version()) {
qDebug() << "Configuration file is now at the current version" << VersionStore::version();
} else if (configVersion == VersionStore::FUTURE_UNSTABLE) {
qDebug() << "Configuration file is now at the unstable version"
<< VersionStore::FUTURE_UNSTABLE;
} else {
qWarning() << "Configuration file is at version" << configVersion
<< "instead of the current" << VersionStore::version();
Expand Down
Loading