From 1ce0f0e7a5059527cea3c6da84c19eb3599d2eff Mon Sep 17 00:00:00 2001 From: flow Date: Mon, 25 Jul 2022 17:52:55 -0300 Subject: [PATCH] fix: progress dialog going away even if the task was not aborted Signed-off-by: flow --- launcher/ui/dialogs/ProgressDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/dialogs/ProgressDialog.cpp b/launcher/ui/dialogs/ProgressDialog.cpp index a79bc837..3c7f53d3 100644 --- a/launcher/ui/dialogs/ProgressDialog.cpp +++ b/launcher/ui/dialogs/ProgressDialog.cpp @@ -43,8 +43,8 @@ void ProgressDialog::setSkipButton(bool present, QString label) void ProgressDialog::on_skipButton_clicked(bool checked) { Q_UNUSED(checked); - task->abort(); - QDialog::reject(); + if (task->abort()) + QDialog::reject(); } ProgressDialog::~ProgressDialog()