From bbcfe84d088775897544d9db019cb81853b936c5 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sun, 23 Nov 2014 20:01:09 +0100 Subject: [PATCH] Added double click/Enter for Server tab Added the same functionality to the server tab --- cockatrice/src/tab_server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/tab_server.cpp b/cockatrice/src/tab_server.cpp index b82248a34..4fba193b3 100644 --- a/cockatrice/src/tab_server.cpp +++ b/cockatrice/src/tab_server.cpp @@ -52,6 +52,8 @@ RoomSelector::RoomSelector(AbstractClient *_client, QWidget *parent) setLayout(vbox); connect(client, SIGNAL(listRoomsEventReceived(const Event_ListRooms &)), this, SLOT(processListRoomsEvent(const Event_ListRooms &))); + connect(roomList, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(joinClicked())); + connect(roomList, SIGNAL(activated(const QModelIndex &)), this, SLOT(joinClicked())); client->sendCommand(client->prepareSessionCommand(Command_ListRooms())); }