diff options
author | robotbrain <robotbrainify@gmail.com> | 2014-10-05 11:36:56 -0400 |
---|---|---|
committer | robotbrain <robotbrainify@gmail.com> | 2014-10-05 11:37:49 -0400 |
commit | b4122cff89e769006730a2ecb1aa23d6081f73ab (patch) | |
tree | 28797067ad54047572875d9dbf7d42a4cdf77dce /logic | |
parent | 43b9706b5c2981c7f599e88fefa73cb02fb0e5b7 (diff) | |
download | MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.gz MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.lz MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.xz MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.zip |
Fix translation downloading
Diffstat (limited to 'logic')
-rw-r--r-- | logic/trans/TranslationDownloader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/logic/trans/TranslationDownloader.cpp b/logic/trans/TranslationDownloader.cpp index d533a7a2..d2b96a01 100644 --- a/logic/trans/TranslationDownloader.cpp +++ b/logic/trans/TranslationDownloader.cpp @@ -27,9 +27,11 @@ void TranslationDownloader::indexRecieved() { if (!line.isEmpty()) { + MetaEntryPtr entry = MMC->metacache()->resolveEntry("translations", "mmc_" + line); + entry->stale = true; CacheDownloadPtr dl = CacheDownload::make( QUrl(URLConstants::TRANSLATIONS_BASE_URL + line), - MMC->metacache()->resolveEntry("translations", "mmc_" + line)); + entry); m_dl_job->addNetAction(dl); } } |