mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-10 18:19:06 +00:00
gs_frame: remove unnecessary CallFromMainThread
Qt events should run on the main thread anyway.
This commit is contained in:
parent
4f12f8b04f
commit
3002e592c3
1 changed files with 3 additions and 13 deletions
|
@ -830,20 +830,10 @@ bool gs_frame::event(QEvent* ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = QMessageBox::Yes;
|
int result = QMessageBox::Yes;
|
||||||
atomic_t<bool> called = false;
|
|
||||||
|
|
||||||
Emu.CallFromMainThread([this, &result, &called]()
|
|
||||||
{
|
|
||||||
m_gui_settings->ShowConfirmationBox(tr("Exit Game?"),
|
m_gui_settings->ShowConfirmationBox(tr("Exit Game?"),
|
||||||
tr("Do you really want to exit the game?<br><br>Any unsaved progress will be lost!<br>"),
|
tr("Do you really want to exit the game?<br><br>Any unsaved progress will be lost!<br>"),
|
||||||
gui::ib_confirm_exit, &result, nullptr);
|
gui::ib_confirm_exit, &result, nullptr);
|
||||||
|
|
||||||
called = true;
|
|
||||||
called.notify_one();
|
|
||||||
});
|
|
||||||
|
|
||||||
called.wait(false);
|
|
||||||
|
|
||||||
if (result != QMessageBox::Yes)
|
if (result != QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue