From 811f6857563401636ba5ea39fc63892eacf007cd Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 12 Sep 2009 22:57:07 +0100 Subject: Fix for replacing loginwindow credentials after login. 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; } } -- cgit v0.10.2-6-g49f6