fix: prevent abort for un-abortable tasks

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-23 14:27:46 +02:00
parent bbb7e9f5c7
commit 335bec68fb
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -44,6 +44,7 @@ void ProgressDialog::setSkipButton(bool present, QString label)
void ProgressDialog::on_skipButton_clicked(bool checked) void ProgressDialog::on_skipButton_clicked(bool checked)
{ {
Q_UNUSED(checked); Q_UNUSED(checked);
if (ui->skipButton->isEnabled()) // prevent other triggers from aborting
task->abort(); task->abort();
} }