From 11cdd3167f8c574ed917da63e63cf6183d7cc7bf Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 6 Jun 2010 10:12:35 +0100
Subject: Pressing Enter in the room field of the MUC Find window now joins the
 room.

Resolves: #449

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&)));
-- 
cgit v0.10.2-6-g49f6