summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQGJ <qgj@gmx.net>2023-05-07 18:05:42 +0200
committerQGJ <qgj@gmx.net>2023-05-07 18:05:42 +0200
commit4366a21eaed655bdbff8cf8c94a1a9796d36aafa (patch)
treea85517c1046bcb4323c39b2f5dce6f4963b454dc
parent1166ca3a5772e92cfd39eb0be7d769aa6f13e967 (diff)
yuzu/applets/qt_profile_select: connect double-click to accept()
In the profile selection window: Allow the user to start the game by double-clicking a profile to avoid having to additionally click the OK button. This avoids an unnecessary "step" to the start of the game...
-rw-r--r--src/yuzu/applets/qt_profile_select.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu/applets/qt_profile_select.cpp b/src/yuzu/applets/qt_profile_select.cpp
index 2448e46b6..1f3f23038 100644
--- a/src/yuzu/applets/qt_profile_select.cpp
+++ b/src/yuzu/applets/qt_profile_select.cpp
@@ -95,6 +95,7 @@ QtProfileSelectionDialog::QtProfileSelectionDialog(
scroll_area->setLayout(layout);
connect(tree_view, &QTreeView::clicked, this, &QtProfileSelectionDialog::SelectUser);
+ connect(tree_view, &QTreeView::doubleClicked, this, &QtProfileSelectionDialog::accept);
connect(controller_navigation, &ControllerNavigation::TriggerKeyboardEvent,
[this](Qt::Key key) {
if (!this->isActiveWindow()) {