Skip to content

Commit

Permalink
Fixed update manager recognizing the current version as a newer version
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilInTheGaps committed Nov 11, 2023
1 parent c878de3 commit d9198ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/common/updates/updatemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
}
Expand Down

0 comments on commit d9198ee

Please sign in to comment.