From 215374c2e2c21964cd6f613237430e98b1f130b3 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 4 Jul 2011 15:44:51 +0000 Subject: [PATCH] fixed issue that return key did not work in the table to connect to a server when only the keyboard is available --- src/connectdlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 4a7adcaa..ff513ec2 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -93,6 +93,10 @@ CConnectDlg::CConnectDlg ( QWidget* parent, Qt::WindowFlags f ) SIGNAL ( itemDoubleClicked ( QTreeWidgetItem*, int ) ), this, SLOT ( OnServerListItemDoubleClicked ( QTreeWidgetItem*, int ) ) ); + QObject::connect ( lvwServers, // to get default return key behaviour working + SIGNAL ( activated ( QModelIndex ) ), + this, SLOT ( OnConnectClicked() ) ); + // combo boxes QObject::connect ( cbxServerAddr, SIGNAL ( editTextChanged ( const QString& ) ), this, SLOT ( OnServerAddrEditTextChanged ( const QString& ) ) );