diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-11-06 14:39:04 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-11-06 14:39:04 (GMT) |
commit | bf7e61aaf36e85dce71f25d40adfa4170e675d3f (patch) | |
tree | e4da1b34ea1941dbfc4bac99e32b9f87b5bc6d73 | |
parent | 25fffbda360fafeeea4164feb4995d088d0a7718 (diff) | |
download | swift-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.cpp | 4 |
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() { |