From 3002e592c367c9414fafc3df6cefddcaab32cf71 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 1 Apr 2022 17:57:10 +0200 Subject: [PATCH] gs_frame: remove unnecessary CallFromMainThread Qt events should run on the main thread anyway. --- rpcs3/rpcs3qt/gs_frame.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index 9c262373da..5f1d9e12e4 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -830,19 +830,9 @@ bool gs_frame::event(QEvent* ev) } int result = QMessageBox::Yes; - atomic_t called = false; - - Emu.CallFromMainThread([this, &result, &called]() - { - m_gui_settings->ShowConfirmationBox(tr("Exit Game?"), - tr("Do you really want to exit the game?

Any unsaved progress will be lost!
"), - 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?

Any unsaved progress will be lost!
"), + gui::ib_confirm_exit, &result, nullptr); if (result != QMessageBox::Yes) {