From 013137c41810d8d53209b685e035d90c54cb0ff7 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Wed, 17 Jul 2019 16:05:00 +0200 Subject: [PATCH] Fix #3783 (#3785) --- cockatrice/src/window_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index 7c1480d7..56fd4c9e 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -851,6 +851,7 @@ void MainWindow::startupConfigCheck() // no config found, 99% new clean install qDebug() << "Startup: old client version empty, assuming first start after clean install"; alertForcedOracleRun(VERSION_STRING, false); + settingsCache->setClientVersion(VERSION_STRING); } else if (settingsCache->getClientVersion() != VERSION_STRING) { // config found, from another (presumably older) version qDebug() << "Startup: old client version" << settingsCache->getClientVersion() @@ -860,6 +861,7 @@ void MainWindow::startupConfigCheck() } else { QtConcurrent::run(db, &CardDatabase::loadCardDatabases); } + settingsCache->setClientVersion(VERSION_STRING); } else { // previous config from this version found qDebug() << "Startup: found config with current version"; @@ -876,7 +878,6 @@ void MainWindow::startupConfigCheck() void MainWindow::alertForcedOracleRun(const QString &version, bool isUpdate) { - settingsCache->setClientVersion(version); if (isUpdate) { QMessageBox::information(this, tr("New Version"), tr("Congratulations on updating to Cockatrice %1!\n"