From 6a9fde79c23e8108d2ca19deba4d5e9082917888 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Sun, 21 Aug 2011 19:44:09 +0100
Subject: Select correct cert when selecting different login JID

Resolves: #963

diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index 2514259..475863c 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -284,7 +284,7 @@ void QtLoginWindow::handleUsernameTextChanged() {
 	QString username = username_->currentText();
 	for (int i = 0; i < usernames_.count(); i++) {
 		if (username_->currentText() == usernames_[i]) {
-			certificateFile_ == certificateFiles_[i];
+			certificateFile_ = certificateFiles_[i];
 			password_->setText(passwords_[i]);
 			remember_->setChecked(password_->text() != "");
 		}
-- 
cgit v0.10.2-6-g49f6