mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-23 06:40:49 +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
@ -830,19 +830,9 @@ bool gs_frame::event(QEvent* ev)
|
||||
}
|
||||
|
||||
int result = QMessageBox::Yes;
|
||||
atomic_t<bool> called = false;
|
||||
|
||||
Emu.CallFromMainThread([this, &result, &called]()
|
||||
{
|
||||
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>"),
|
||||
gui::ib_confirm_exit, &result, nullptr);
|
||||
|
||||
called = true;
|
||||
called.notify_one();
|
||||
});
|
||||
|
||||
called.wait(false);
|
||||
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>"),
|
||||
gui::ib_confirm_exit, &result, nullptr);
|
||||
|
||||
if (result != QMessageBox::Yes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user