From db392b49943d7f575cef29ec26e2490d49eb60a7 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Tue, 6 Jul 2021 15:12:07 +0100 Subject: GH-1949 Allow modpacks.ch pack downloads to be aborted --- api/logic/modplatform/modpacksch/FTBPackInstallTask.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api/logic/modplatform/modpacksch/FTBPackInstallTask.h') diff --git a/api/logic/modplatform/modpacksch/FTBPackInstallTask.h b/api/logic/modplatform/modpacksch/FTBPackInstallTask.h index 3b2d60de..55db3d3c 100644 --- a/api/logic/modplatform/modpacksch/FTBPackInstallTask.h +++ b/api/logic/modplatform/modpacksch/FTBPackInstallTask.h @@ -16,6 +16,7 @@ public: explicit PackInstallTask(Modpack pack, QString version); virtual ~PackInstallTask(){} + bool canAbort() const override { return true; } bool abort() override; protected: @@ -30,6 +31,8 @@ private: void install(); private: + bool abortable = false; + NetJobPtr jobPtr; QByteArray response; -- cgit