summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-05-31 08:24:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-05-31 08:24:02 (GMT)
commit23828328c1e13dfe17764baa4b6b8c6490af18a6 (patch)
tree577c669c586950fb42c46c7697eac4a0610ef590 /Swift/Controllers
parente7db09d201280cb64de649f5e33ca13d82045f38 (diff)
downloadswift-contrib-23828328c1e13dfe17764baa4b6b8c6490af18a6.zip
swift-contrib-23828328c1e13dfe17764baa4b6b8c6490af18a6.tar.bz2
Don't report encrypted connections once disconnected.
Resolves: #1126
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/MainController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index cb43057..53387ca 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -506,18 +506,21 @@ void MainController::performLoginFromCachedCredentials() {
}
ClientOptions clientOptions;
bool eagle = settings_->getSetting(SettingConstants::FORGET_PASSWORDS);
clientOptions.forgetPassword = eagle;
clientOptions.useTLS = eagle ? ClientOptions::RequireTLS : ClientOptions::UseTLSWhenAvailable;
client_->connect(clientOptions);
}
void MainController::handleDisconnected(const boost::optional<ClientError>& error) {
+ if (rosterController_) {
+ rosterController_->getWindow()->setStreamEncryptionStatus(false);
+ }
if (settings_->getSetting(SettingConstants::FORGET_PASSWORDS)) {
purgeCachedCredentials();
}
if (quitRequested_) {
resetClient();
loginWindow_->quit();
}
else if (error) {
std::string message;