Skip to content

Commit

Permalink
Abort the progress dialog in case of update error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Feb 2, 2020
1 parent 9c0c5a4 commit 492a8f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions YUViewLib/src/handler/updateHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 492a8f3

Please sign in to comment.