Commit 2ef6e537 authored by Dennis Rassmann's avatar Dennis Rassmann

update_notif: abort process if an error arises

Signed-off-by: Dennis Rassmann's avatarshowp1984 <showp1984@gmail.com>
parent 939daa25
......@@ -235,6 +235,7 @@ void update_notif::cancelDownload()
void update_notif::downloadFinished()
{
bool error = false;
if(downloadRequestAborted) {
if(file) {
file->close();
......@@ -274,6 +275,7 @@ void update_notif::downloadFinished()
QMessageBox::information(this, "Download failed", tr("Failed: %1").arg(reply->errorString()));
cancelDownload();
downloadFinished();
error = true;
}
reply->deleteLater();
......@@ -281,7 +283,8 @@ void update_notif::downloadFinished()
delete file;
file = NULL;
rename_installer();
if(!error)
rename_installer();
}
void update_notif::rename_installer(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment