From e1fb01e6ddf93b57a90caac92c2d366280456773 Mon Sep 17 00:00:00 2001 From: Leonardo Murillo Date: Tue, 16 Jun 2015 14:49:19 -0600 Subject: [PATCH] Fixing bug on platforms for which we don't release --- libraries/auto-updater/src/AutoUpdater.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/auto-updater/src/AutoUpdater.cpp b/libraries/auto-updater/src/AutoUpdater.cpp index 445cdaec7b..50d11a2af5 100644 --- a/libraries/auto-updater/src/AutoUpdater.cpp +++ b/libraries/auto-updater/src/AutoUpdater.cpp @@ -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(); } }