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
@@ -512,6 +512,9 @@ void MainController::performLoginFromCachedCredentials() {
}
void MainController::handleDisconnected(const boost::optional<ClientError>& error) {
+ if (rosterController_) {
+ rosterController_->getWindow()->setStreamEncryptionStatus(false);
+ }
if (settings_->getSetting(SettingConstants::FORGET_PASSWORDS)) {
purgeCachedCredentials();
}