summaryrefslogtreecommitdiffstats
path: root/logic/updater/UpdateChecker.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-04-05 22:58:47 +0200
committerPetr Mrázek <peterix@gmail.com>2014-04-06 00:33:33 +0200
commit42e305bb9d1babef9bb66a8d376289e8aebed671 (patch)
tree7cad2b473abc703d3c9f29daee7f5560d6e22e76 /logic/updater/UpdateChecker.cpp
parentad9d082f5713df72fc18de957547b7ad47a60e46 (diff)
downloadMultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.gz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.lz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.tar.xz
MultiMC-42e305bb9d1babef9bb66a8d376289e8aebed671.zip
Get rid of long rebuilds because of minor cmake config changes
Diffstat (limited to 'logic/updater/UpdateChecker.cpp')
-rw-r--r--logic/updater/UpdateChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/updater/UpdateChecker.cpp b/logic/updater/UpdateChecker.cpp
index 8e2aa8b3..57ddfb0b 100644
--- a/logic/updater/UpdateChecker.cpp
+++ b/logic/updater/UpdateChecker.cpp
@@ -16,6 +16,7 @@
#include "UpdateChecker.h"
#include "MultiMC.h"
+#include "Config.h"
#include "logger/QsLog.h"
@@ -30,7 +31,7 @@
UpdateChecker::UpdateChecker()
{
- m_channelListUrl = CHANLIST_URL;
+ m_channelListUrl = BuildConfig.CHANLIST_URL;
m_updateChecking = false;
m_chanListLoading = false;
m_checkUpdateWaiting = false;
@@ -148,7 +149,7 @@ void UpdateChecker::updateCheckFinished(bool notifyNoUpdate)
// We've got the version with the greatest ID number. Now compare it to our current build
// number and update if they're different.
int newBuildNumber = newestVersion.value("Id").toVariant().toInt();
- if (newBuildNumber != MMC->version().build)
+ if (newBuildNumber != BuildConfig.VERSION_BUILD)
{
QLOG_DEBUG() << "Found newer version with ID" << newBuildNumber;
// Update!