From 0b65d97ecbe0a2c5c85b7fd62c0f916b29480e3e Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Wed, 9 Oct 2024 13:40:05 +0200 Subject: [PATCH] Fix assert --- dashboard/wizard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/wizard.cpp b/dashboard/wizard.cpp index c091a855..9893d48e 100644 --- a/dashboard/wizard.cpp +++ b/dashboard/wizard.cpp @@ -497,7 +497,7 @@ void wizard::start_download() void wizard::cancel_download() { - assert(reply); + assert(apk_reply); disconnect(apk_reply, &QNetworkReply::downloadProgress, this, &wizard::on_download_progress); disconnect(apk_reply, &QNetworkReply::errorOccurred, this, &wizard::on_download_error); @@ -515,7 +515,7 @@ void wizard::cancel_download() void wizard::on_download_progress(qint64 bytesReceived, qint64 bytesTotal) { - assert(reply); + assert(apk_reply); if (not apk_reply->error()) { @@ -561,7 +561,7 @@ void wizard::on_download_error(QNetworkReply::NetworkError code) void wizard::on_download_finished() { - assert(reply); + assert(apk_reply); if (not apk_reply->error()) {