summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-06-19 19:40:51 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-06-19 19:40:51 (GMT)
commitbe51ba59e7e7cf199bb6f71a4b82cb003d6f1263 (patch)
tree68a883a75745601486a2daf846de36a3daa27565 /Swift
parenta37cb4d534f82f3be96032a844743de4485157af (diff)
downloadswift-be51ba59e7e7cf199bb6f71a4b82cb003d6f1263.zip
swift-be51ba59e7e7cf199bb6f71a4b82cb003d6f1263.tar.bz2
Give password field focus if pre-filling the jid field at login
Resolves: #464
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}