mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Qt: delete batch progress dialog after user closed it (as originally intended)
This commit is contained in:
parent
506ea340de
commit
35e6ed1a88
1 changed files with 9 additions and 11 deletions
|
@ -2366,19 +2366,17 @@ void game_list_frame::BatchActionBySerials(progress_dialog* pdlg, const std::set
|
|||
if ((*iterate_over_serial)(*index))
|
||||
{
|
||||
QTimer::singleShot(1, this, *periodic_func);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
pdlg->setLabelText(progressLabel.arg(*index).arg(serials_size));
|
||||
pdlg->setCancelButtonText(tr("OK"));
|
||||
connect(pdlg, &progress_dialog::canceled, this, [pdlg](){ pdlg->deleteLater(); });
|
||||
QApplication::beep();
|
||||
|
||||
if (refresh_on_finish && index)
|
||||
{
|
||||
pdlg->setLabelText(progressLabel.arg(*index).arg(serials_size));
|
||||
pdlg->setCancelButtonText(tr("OK"));
|
||||
QApplication::beep();
|
||||
|
||||
if (refresh_on_finish && index)
|
||||
{
|
||||
Refresh(true);
|
||||
}
|
||||
|
||||
pdlg->deleteLater();
|
||||
Refresh(true);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue