From d9198ee91dced6cfd6a9e0f7ec41200f06d81b91 Mon Sep 17 00:00:00 2001 From: Phil Hoffmann Date: Sat, 11 Nov 2023 20:49:20 +0100 Subject: [PATCH] Fixed update manager recognizing the current version as a newer version --- src/common/updates/updatemanager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/updates/updatemanager.cpp b/src/common/updates/updatemanager.cpp index 9ff76bd9..305351dd 100755 --- a/src/common/updates/updatemanager.cpp +++ b/src/common/updates/updatemanager.cpp @@ -46,15 +46,15 @@ void UpdateManager::checkForUpdates() m_newestVersion = std::move(version); qCDebug(gmUpdateManager()) << "Newest available version:" << m_newestVersion; - if (compareVersions(CURRENT_VERSION, m_newestVersion)) + if (compareVersions(m_newestVersion, CURRENT_VERSION)) { - qCDebug(gmUpdateManager()) << "Your version" << CURRENT_VERSION << "is the newest one."; - emit noUpdateAvailable(); + qCDebug(gmUpdateManager()) << "Found a newer version:" << m_newestVersion; + emit updateAvailable(); } else { - qCDebug(gmUpdateManager()) << "Found a newer version:" << m_newestVersion; - emit updateAvailable(); + qCDebug(gmUpdateManager()) << "Your version" << CURRENT_VERSION << "is the newest one."; + emit noUpdateAvailable(); } }); }