fix: clean up execWithTask in Progress Dialog

This prevents weird problems, such as dialogs being non-modal when they
should be!

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-07-01 11:59:34 -03:00
parent 79b0a16f7a
commit 58dc3e93d3
2 changed files with 15 additions and 21 deletions

View File

@ -108,10 +108,8 @@ void ModUpdateDialog::checkCandidates()
});
// Check for updates
// FIXME: SOMEHOW THIS IS NOT MODAL???????
ProgressDialog progress_dialog(m_parent);
progress_dialog.setSkipButton(true, tr("Abort"));
progress_dialog.setVisible(true);
progress_dialog.setWindowTitle(tr("Checking for updates..."));
auto ret = progress_dialog.execWithTask(&check_task);