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
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ 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);
|
||||||
task->abort();
|
if (task->abort())
|
||||||
QDialog::reject();
|
QDialog::reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressDialog::~ProgressDialog()
|
ProgressDialog::~ProgressDialog()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue