diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-11 14:02:19 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-11 14:02:19 +0100 |
| commit | 04a4346dc83a370f87c5aaa0c30a62bfc6d66411 (patch) | |
| tree | 0aee9ad8e3a7f94d8534a033fae2b413b72a0443 /src/mainwindow.cpp | |
| parent | cc7c3adcad973949ac976c3dc71bb8cf2677056c (diff) | |
Save version even after downgrading.
Otherwise the downgrade warning will appear forever.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 144d2371..a0cfd0a0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1836,12 +1836,14 @@ void MainWindow::processUpdates() { }
}
- if (currentVersion > lastVersion)
- settings.setValue("version", currentVersion.toString());
- else if (currentVersion < lastVersion)
+ if (currentVersion > lastVersion) {
+ //NOP
+ } else if (currentVersion < lastVersion)
qWarning() << tr("Notice: Your current MO version (%1) is lower than the previously used one (%2). "
"The GUI may not downgrade gracefully, so you may experience oddities. "
"However, there should be no serious issues.").arg(currentVersion.toString()).arg(lastVersion.toString()).toStdWString();
+ //save version in all case
+ settings.setValue("version", currentVersion.toString());
}
void MainWindow::storeSettings(QSettings &settings) {
|
