From 7c5306c5075c2f71ce8a20f64261afe82619cc9b Mon Sep 17 00:00:00 2001 From: Jonathan Young Date: Tue, 13 May 2014 15:29:54 +1000 Subject: [PATCH] Fix crash when canceling wizard after patch download is complete. --- installwizard_patch.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installwizard_patch.cpp b/installwizard_patch.cpp index 51a9971..bc284de 100644 --- a/installwizard_patch.cpp +++ b/installwizard_patch.cpp @@ -54,7 +54,10 @@ void InstallWizard_Patch::cancel() delete patchFile; patchFile = NULL; - networkReply->abort(); + + if (!isDownloadFinished) + networkReply->abort(); + isCancelled = true; }