From 492a8f31176feb788a4854c41b50d10933184033 Mon Sep 17 00:00:00 2001 From: Christian Feldmann Date: Sun, 2 Feb 2020 21:08:01 +0100 Subject: [PATCH] Abort the progress dialog in case of update error. --- YUViewLib/src/handler/updateHandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/YUViewLib/src/handler/updateHandler.cpp b/YUViewLib/src/handler/updateHandler.cpp index 5c7b9c51a..b07ee84fa 100644 --- a/YUViewLib/src/handler/updateHandler.cpp +++ b/YUViewLib/src/handler/updateHandler.cpp @@ -538,6 +538,11 @@ void updateHandler::abortUpdate(QString errorMsg) forceUpdate = false; userCheckRequest = false; updaterStatus = updaterIdle; + if (downloadProgress) + { + delete downloadProgress; + downloadProgress = NULL; + } } void updateHandler::updateDownloadProgress(int64_t val, int64_t max)