From 9ecba612d790c1f613dc959888f62e5d3575faae Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 14 Sep 2010 17:42:12 +0100
Subject: Don't tick 'Remember Password' when editing a JID.

Resolves: #499

diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index c350464..1796b0e 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -225,12 +225,12 @@ void QtLoginWindow::handleUsernameTextChanged() {
 		if (username_->currentText() == usernames_[i]) {
 			certificateFile_ == certificateFiles_[i];
 			password_->setText(passwords_[i]);
+			remember_->setChecked(password_->text() != "");
 		}
 	}
 	if (!certificateFile_.isEmpty()) {
 		certificateButton_->setChecked(true);
 	}
-	remember_->setChecked(password_->text() != "");
 }
 
 void QtLoginWindow::loggedOut() {
-- 
cgit v0.10.2-6-g49f6