mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 17:49:45 +00:00
revert partial bug fix
This commit is contained in:
parent
f027bf64bf
commit
24a06d7197
1 changed files with 3 additions and 13 deletions
|
@ -398,25 +398,15 @@ void main_window::OnMissingFw()
|
||||||
|
|
||||||
QMessageBox* mb = new QMessageBox(QMessageBox::Question, title, message, QMessageBox::Ok | QMessageBox::Cancel, this, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowStaysOnTopHint);
|
QMessageBox* mb = new QMessageBox(QMessageBox::Question, title, message, QMessageBox::Ok | QMessageBox::Cancel, this, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowStaysOnTopHint);
|
||||||
mb->setTextFormat(Qt::RichText);
|
mb->setTextFormat(Qt::RichText);
|
||||||
|
|
||||||
mb->button(QMessageBox::Ok)->setText(tr("Locate PS3UPDAT.PUP"));
|
mb->button(QMessageBox::Ok)->setText(tr("Locate PS3UPDAT.PUP"));
|
||||||
|
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
// NOTE: Qt::WA_DeleteOnClose attribute causes the dialogs invoked in InstallPup() to immediately destroy (probably a bug in Qt)
|
mb->open();
|
||||||
// the "mb" dialog (while still in use in the "mb"'s "accected" connection) often causing a crash due to access violation.
|
|
||||||
// So, instead of using Qt::WA_DeleteOnClose attribute, manually delete "mb" by using deleteLater() when the dialog is closed
|
|
||||||
//
|
|
||||||
//mb->setAttribute(Qt::WA_DeleteOnClose);
|
|
||||||
|
|
||||||
connect(mb, &QDialog::finished, this, [mb]()
|
|
||||||
{
|
|
||||||
mb->deleteLater();
|
|
||||||
});
|
|
||||||
|
|
||||||
connect(mb, &QDialog::accepted, this, [this]()
|
connect(mb, &QDialog::accepted, this, [this]()
|
||||||
{
|
{
|
||||||
InstallPup();
|
InstallPup();
|
||||||
});
|
});
|
||||||
|
|
||||||
mb->open();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void main_window::ResizeIcons(int index)
|
void main_window::ResizeIcons(int index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue