summaryrefslogtreecommitdiffstats
path: root/logic/trans/TranslationDownloader.cpp
diff options
context:
space:
mode:
authorrobotbrain <robotbrainify@gmail.com>2014-10-05 11:36:56 -0400
committerrobotbrain <robotbrainify@gmail.com>2014-10-05 11:37:49 -0400
commitb4122cff89e769006730a2ecb1aa23d6081f73ab (patch)
tree28797067ad54047572875d9dbf7d42a4cdf77dce /logic/trans/TranslationDownloader.cpp
parent43b9706b5c2981c7f599e88fefa73cb02fb0e5b7 (diff)
downloadMultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar
MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.gz
MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.lz
MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.tar.xz
MultiMC-b4122cff89e769006730a2ecb1aa23d6081f73ab.zip
Fix translation downloading
Diffstat (limited to 'logic/trans/TranslationDownloader.cpp')
-rw-r--r--logic/trans/TranslationDownloader.cpp4
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);
}
}