mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 12:56:38 +02: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() {
|
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();
|
int latestVersionAvailable = _builds.lastKey();
|
||||||
if (QCoreApplication::applicationVersion() != "dev" &&
|
if (QCoreApplication::applicationVersion().toInt() < latestVersionAvailable) {
|
||||||
QCoreApplication::applicationVersion().toInt() < latestVersionAvailable) {
|
|
||||||
emit newVersionIsAvailable();
|
emit newVersionIsAvailable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue