fix: progress dialog going away even if the task was not aborted
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
fbf1901d86
commit
1ce0f0e7a5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user