diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-04-05 22:58:47 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-04-06 00:33:33 +0200 |
commit | 42e305bb9d1babef9bb66a8d376289e8aebed671 (patch) | |
tree | 7cad2b473abc703d3c9f29daee7f5560d6e22e76 /logic/updater/UpdateChecker.cpp | |
parent | ad9d082f5713df72fc18de957547b7ad47a60e46 (diff) | |
download | MultiMC-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.cpp | 5 |
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! |