From 9e349d8b886cc94de1cdf0a37b8827e162088c7b Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sun, 23 Nov 2014 00:46:54 +0100 Subject: [PATCH] Added "ENTER" to join a room Can now join a room by highlighting a room and pressing ENTER. Works nice with arrow navigation. --- cockatrice/src/gameselector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/gameselector.cpp b/cockatrice/src/gameselector.cpp index 475768da..eef42706 100644 --- a/cockatrice/src/gameselector.cpp +++ b/cockatrice/src/gameselector.cpp @@ -77,6 +77,7 @@ GameSelector::GameSelector(AbstractClient *_client, const TabSupervisor *_tabSup connect(joinButton, SIGNAL(clicked()), this, SLOT(actJoin())); connect(spectateButton, SIGNAL(clicked()), this, SLOT(actJoin())); connect(gameListView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(actJoin())); + connect(gameListView, SIGNAL(activated(const QModelIndex &)), this, SLOT(actJoin())); } void GameSelector::actSetFilter()