summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-12 21:57:07 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-12 21:57:07 (GMT)
commit811f6857563401636ba5ea39fc63892eacf007cd (patch)
treef5aae91cd5592b5317120a170ed8c1d830397396 /Swift
parenta2f1c206f3468553da879e903c9cc3f175b8e52c (diff)
downloadswift-811f6857563401636ba5ea39fc63892eacf007cd.zip
swift-811f6857563401636ba5ea39fc63892eacf007cd.tar.bz2
Fix for replacing loginwindow credentials after login.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index e9e135c..a7c9740 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -105,7 +105,7 @@ void QtLoginWindow::addAvailableAccount(const String& defaultJID, const String&
QString username = P2QSTRING(defaultJID);
int index = -1;
for (int i = 0; i < usernames_.count(); i++) {
- if (username_->currentText() == usernames_[i]) {
+ if (username == usernames_[i]) {
index = i;
}
}