From 09f8c6ddcd8421f57570091c319d24b0fc0f11db Mon Sep 17 00:00:00 2001 From: Antonino Di Guardo <64427768+digant73@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:25:47 +0200 Subject: [PATCH] Add selection on firmware libraries panel by double-clicking (#17481) I minor, and last, follow up of #17459 and #17442 allowing to check/uncheck an entry in the firmware libraries panel by double-clicking. For that panel, a solution based on single-clicking was preferrable but it seems it was conflicting with the existing itemChanged (single click was triggered twice so producing no state change). IMO, better than nothing. --------- Co-authored-by: Megamouse --- rpcs3/rpcs3qt/settings_dialog.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index ddb26e3144..1dcba8b9d2 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -1787,6 +1787,14 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std } }); + connect(ui->lleList, &QListWidget::itemDoubleClicked, this, [](QListWidgetItem* item) + { + if (!item) + return; + + item->setCheckState(item->checkState() != Qt::CheckState::Unchecked ? Qt::CheckState::Unchecked : Qt::CheckState::Checked); + }); + connect(ui->hleList, &QListWidget::itemChanged, [this](QListWidgetItem* item) { for (auto cb : ui->hleList->selectedItems()) @@ -1795,6 +1803,14 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std } }); + connect(ui->hleList, &QListWidget::itemDoubleClicked, this, [](QListWidgetItem* item) + { + if (!item) + return; + + item->setCheckState(item->checkState() != Qt::CheckState::Unchecked ? Qt::CheckState::Unchecked : Qt::CheckState::Checked); + }); + connect(this, &settings_dialog::signal_restore_dependant_defaults, this, reset_library_lists); // ______ _ _ _______ _