summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-08-22 00:52:50 +0200
committerPetr Mrázek <peterix@gmail.com>2015-08-22 00:52:50 +0200
commitb6ec2ac4b0eb8bce9d985691325b4406b1faf879 (patch)
treebb2f6381dc9a267759c7c7789c42dee581048644 /application/MainWindow.cpp
parentc5bb33c7169c87fe17d030694938acd35f199947 (diff)
downloadMultiMC-b6ec2ac4b0eb8bce9d985691325b4406b1faf879.tar
MultiMC-b6ec2ac4b0eb8bce9d985691325b4406b1faf879.tar.gz
MultiMC-b6ec2ac4b0eb8bce9d985691325b4406b1faf879.tar.lz
MultiMC-b6ec2ac4b0eb8bce9d985691325b4406b1faf879.tar.xz
MultiMC-b6ec2ac4b0eb8bce9d985691325b4406b1faf879.zip
GH-1140 mark cached modpack dls as stale so it checks the server
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index d5fcc6f0..72db197c 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1061,6 +1061,7 @@ void MainWindow::instanceFromZipPack(QString instName, QString instGroup, QStrin
{
const QString path = url.host() + '/' + url.path();
auto entry = ENV.metacache()->resolveEntry("general", path);
+ entry->stale = true;
CacheDownloadPtr dl = CacheDownload::make(url, entry);
NetJob job(tr("Modpack download"));
job.addNetAction(dl);