summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-11-06 14:39:04 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-11-06 14:39:04 (GMT)
commitbf7e61aaf36e85dce71f25d40adfa4170e675d3f (patch)
treee4da1b34ea1941dbfc4bac99e32b9f87b5bc6d73
parent25fffbda360fafeeea4164feb4995d088d0a7718 (diff)
downloadswift-contrib-bf7e61aaf36e85dce71f25d40adfa4170e675d3f.zip
swift-contrib-bf7e61aaf36e85dce71f25d40adfa4170e675d3f.tar.bz2
Clear out certificates when selecting another account.
Change-Id: Ifb1761d844e7f6ca14cb8c53dab2732d1ac9eba3 Resolves: #1145
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp4
1 files changed, 1 insertions, 3 deletions
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() {