From bf7e61aaf36e85dce71f25d40adfa4170e675d3f Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 6 Nov 2012 14:39:04 +0000 Subject: Clear out certificates when selecting another account. Change-Id: Ifb1761d844e7f6ca14cb8c53dab2732d1ac9eba3 Resolves: #1145 diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 1cb1c68..d1fac1e 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -336,9 +336,7 @@ void QtLoginWindow::handleUsernameTextChanged() { currentOptions_ = options_[i]; } } - if (!certificateFile_.isEmpty()) { - certificateButton_->setChecked(true); - } + certificateButton_->setChecked(!certificateFile_.isEmpty()); } void QtLoginWindow::loggedOut() { -- cgit v0.10.2-6-g49f6