From be51ba59e7e7cf199bb6f71a4b82cb003d6f1263 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sat, 19 Jun 2010 20:40:51 +0100
Subject: Give password field focus if pre-filling the jid field at login

Resolves: #464

diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index b278dfd..c350464 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -181,6 +181,7 @@ void QtLoginWindow::selectUser(const String& username) {
 	for (int i = 0; i < usernames_.count(); i++) {
 		if (P2QSTRING(username) == usernames_[i]) {
 			username_->setCurrentIndex(i);
+			password_->setFocus();
 			break;
 		}
 	}
-- 
cgit v0.10.2-6-g49f6