Qt: make sure to actually delete the progress dialog when it is closed

Also add some more cleanup code for the gamelist refresh progress dialog
This commit is contained in:
Megamouse 2024-03-09 17:57:27 +01:00
parent 4a7d982a2b
commit a09900a64f
2 changed files with 25 additions and 4 deletions

View file

@ -51,7 +51,8 @@ void progress_dialog::SetValue(int progress)
void progress_dialog::SetDeleteOnClose()
{
connect(this, &QProgressDialog::canceled, this, &QProgressDialog::deleteLater);
setAttribute(Qt::WA_DeleteOnClose);
connect(this, &QProgressDialog::canceled, this, &QProgressDialog::close, Qt::UniqueConnection);
}
void progress_dialog::SignalFailure() const