Fixing bug on platforms for which we don't release

This commit is contained in:
Leonardo Murillo 2015-06-16 14:49:19 -06:00
parent 7ead2bc46b
commit e1fb01e6dd

View file

@ -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();
}
}