Fix translation downloading

This commit is contained in:
robotbrain 2014-10-05 11:36:56 -04:00
parent 43b9706b5c
commit b4122cff89

View File

@ -27,9 +27,11 @@ void TranslationDownloader::indexRecieved()
{ {
if (!line.isEmpty()) if (!line.isEmpty())
{ {
MetaEntryPtr entry = MMC->metacache()->resolveEntry("translations", "mmc_" + line);
entry->stale = true;
CacheDownloadPtr dl = CacheDownload::make( CacheDownloadPtr dl = CacheDownload::make(
QUrl(URLConstants::TRANSLATIONS_BASE_URL + line), QUrl(URLConstants::TRANSLATIONS_BASE_URL + line),
MMC->metacache()->resolveEntry("translations", "mmc_" + line)); entry);
m_dl_job->addNetAction(dl); m_dl_job->addNetAction(dl);
} }
} }