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 /Swift | |
| parent | 25fffbda360fafeeea4164feb4995d088d0a7718 (diff) | |
| download | swift-bf7e61aaf36e85dce71f25d40adfa4170e675d3f.zip swift-bf7e61aaf36e85dce71f25d40adfa4170e675d3f.tar.bz2 | |
Clear out certificates when selecting another account.
Change-Id: Ifb1761d844e7f6ca14cb8c53dab2732d1ac9eba3
Resolves: #1145
Diffstat (limited to 'Swift')
| -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 @@ -327,27 +327,25 @@ void QtLoginWindow::addAvailableAccount(const std::string& defaultJID, const std } void QtLoginWindow::handleUsernameTextChanged() { QString username = username_->currentText(); for (int i = 0; i < usernames_.count(); i++) { if (username_->currentText() == usernames_[i]) { certificateFile_ = certificateFiles_[i]; password_->setText(passwords_[i]); remember_->setChecked(password_->text() != ""); currentOptions_ = options_[i]; } } - if (!certificateFile_.isEmpty()) { - certificateButton_->setChecked(true); - } + certificateButton_->setChecked(!certificateFile_.isEmpty()); } void QtLoginWindow::loggedOut() { stack_->removeWidget(stack_->currentWidget()); stack_->addWidget(loginWidgetWrapper_); stack_->setCurrentWidget(loginWidgetWrapper_); setInitialMenus(); setIsLoggingIn(false); } void QtLoginWindow::setIsLoggingIn(bool loggingIn) { /* Change the for loop as well if you add to this.*/ |
Swift