mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fixing bug on platforms for which we don't release
This commit is contained in:
parent
7ead2bc46b
commit
e1fb01e6dd
1 changed files with 6 additions and 2 deletions
|
@ -104,9 +104,13 @@ void AutoUpdater::parseLatestVersionData() {
|
|||
}
|
||||
|
||||
void AutoUpdater::checkVersionAndNotify() {
|
||||
if (QCoreApplication::applicationVersion() == "dev" || _builds.empty()) {
|
||||
// No version checking is required in dev builds or when not builds
|
||||
// data was found for the platform
|
||||
return;
|
||||
}
|
||||
int latestVersionAvailable = _builds.lastKey();
|
||||
if (QCoreApplication::applicationVersion() != "dev" &&
|
||||
QCoreApplication::applicationVersion().toInt() < latestVersionAvailable) {
|
||||
if (QCoreApplication::applicationVersion().toInt() < latestVersionAvailable) {
|
||||
emit newVersionIsAvailable();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue