summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-06-06 09:12:35 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-06-06 09:12:35 (GMT)
commit11cdd3167f8c574ed917da63e63cf6183d7cc7bf (patch)
tree0921bbc8f34748275196680e7dc2fd82b7fb8636
parentc3de93029ccb15665c25501ed4944d4d2962834e (diff)
downloadswift-contrib-11cdd3167f8c574ed917da63e63cf6183d7cc7bf.zip
swift-contrib-11cdd3167f8c574ed917da63e63cf6183d7cc7bf.tar.bz2
Pressing Enter in the room field of the MUC Find window now joins the room.
Resolves: #449
-rw-r--r--Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
index 36d282d..c5a1478 100644
--- a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
+++ b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.cpp
@@ -35,6 +35,8 @@ QtMUCSearchWindow::QtMUCSearchWindow(UIEventStream* eventStream) {
results_->setAlternatingRowColors(true);
#endif
connect(service_, SIGNAL(returnPressed()), this, SLOT(handleSearch()));
+ connect(room_, SIGNAL(returnPressed()), this, SLOT(handleJoin()));
+ connect(nickName_, SIGNAL(returnPressed()), room_, SLOT(setFocus()));
connect(searchButton_, SIGNAL(clicked()), this, SLOT(handleSearch()));
connect(joinButton_, SIGNAL(clicked()), this, SLOT(handleJoin()));
connect(results_, SIGNAL(clicked(const QModelIndex&)), this, SLOT(handleSelected(const QModelIndex&)));