From 6180a58d7a1b58c4089a913071cb576d4ced8202 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 22 May 2023 23:35:28 +0200 Subject: [PATCH] Qt: disable emulated pad settings during emulation --- rpcs3/rpcs3qt/emulated_pad_settings_dialog.cpp | 1 + rpcs3/rpcs3qt/main_window.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rpcs3/rpcs3qt/emulated_pad_settings_dialog.cpp b/rpcs3/rpcs3qt/emulated_pad_settings_dialog.cpp index e02aa64b69..0253d70616 100644 --- a/rpcs3/rpcs3qt/emulated_pad_settings_dialog.cpp +++ b/rpcs3/rpcs3qt/emulated_pad_settings_dialog.cpp @@ -26,6 +26,7 @@ emulated_pad_settings_dialog::emulated_pad_settings_dialog(pad_type type, QWidge setObjectName("emulated_pad_settings_dialog"); setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_StyledBackground); + setModal(true); QVBoxLayout* v_layout = new QVBoxLayout(this); diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 3d52b88a67..880ed035f9 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -1841,6 +1841,7 @@ void main_window::OnEmuStop() } ui->actionManage_Users->setEnabled(true); ui->confCamerasAct->setEnabled(true); + ui->menuEmulatedPads->setEnabled(true); // Refresh game list in order to update time played if (m_game_list_frame && m_is_list_mode) @@ -1881,6 +1882,7 @@ void main_window::OnEmuReady() const ui->actionManage_Users->setEnabled(false); ui->confCamerasAct->setEnabled(false); + ui->menuEmulatedPads->setEnabled(false); } void main_window::EnableMenus(bool enabled) const