fix: progress dialog going away even if the task was not aborted

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-07-25 17:52:55 -03:00 committed by Sefa Eyeoglu
parent fbf1901d86
commit 1ce0f0e7a5
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -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()