diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-01-31 16:59:03 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-02 11:30:24 +0200 |
commit | 6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f (patch) | |
tree | 28aaf76918d1ff0ffe2a437573bb1ab7a012c4ec /logic/trans | |
parent | e508728246043fcaf8bee565e73b15e15eb2e531 (diff) | |
download | MultiMC-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar MultiMC-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar.gz MultiMC-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar.lz MultiMC-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar.xz MultiMC-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.zip |
NOISSUE Split MultiMC app object into MultiMC and Env
Diffstat (limited to 'logic/trans')
-rw-r--r-- | logic/trans/TranslationDownloader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/trans/TranslationDownloader.cpp b/logic/trans/TranslationDownloader.cpp index d2b96a01..77f1b9f7 100644 --- a/logic/trans/TranslationDownloader.cpp +++ b/logic/trans/TranslationDownloader.cpp @@ -3,7 +3,8 @@ #include "logic/net/ByteArrayDownload.h" #include "logic/net/CacheDownload.h" #include "logic/net/URLConstants.h" -#include "MultiMC.h" +#include "logic/Env.h" +#include "logger/QsLog.h" TranslationDownloader::TranslationDownloader() { @@ -27,7 +28,7 @@ void TranslationDownloader::indexRecieved() { if (!line.isEmpty()) { - MetaEntryPtr entry = MMC->metacache()->resolveEntry("translations", "mmc_" + line); + MetaEntryPtr entry = ENV.metacache()->resolveEntry("translations", "mmc_" + line); entry->stale = true; CacheDownloadPtr dl = CacheDownload::make( QUrl(URLConstants::TRANSLATIONS_BASE_URL + line), |