Disable ok button when it is not visible.
Otherwise it was possible to close the window before all cleanup is done and later crash the program.
This commit is contained in:
parent
c0385aca3c
commit
200bb23b67
|
@ -143,6 +143,7 @@ void ApplyProgressDialog::show()
|
||||||
|
|
||||||
dialogWidget().treeTasks().clear();
|
dialogWidget().treeTasks().clear();
|
||||||
okButton->setVisible(false);
|
okButton->setVisible(false);
|
||||||
|
okButton->setEnabled(false);
|
||||||
cancelButton->setVisible(true);
|
cancelButton->setVisible(true);
|
||||||
cancelButton->setEnabled(true);
|
cancelButton->setEnabled(true);
|
||||||
|
|
||||||
|
@ -244,6 +245,7 @@ void ApplyProgressDialog::allOpsDone(const QString& msg)
|
||||||
dialogWidget().progressTotal().setValue(operationRunner().numJobs());
|
dialogWidget().progressTotal().setValue(operationRunner().numJobs());
|
||||||
cancelButton->setVisible(false);
|
cancelButton->setVisible(false);
|
||||||
okButton->setVisible(true);
|
okButton->setVisible(true);
|
||||||
|
okButton->setEnabled(true);
|
||||||
detailsWidget().buttonSave().setEnabled(true);
|
detailsWidget().buttonSave().setEnabled(true);
|
||||||
detailsWidget().buttonBrowser().setEnabled(true);
|
detailsWidget().buttonBrowser().setEnabled(true);
|
||||||
timer().stop();
|
timer().stop();
|
||||||
|
|
Loading…
Reference in New Issue