mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
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:
parent
4a7d982a2b
commit
a09900a64f
2 changed files with 25 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue