From 23828328c1e13dfe17764baa4b6b8c6490af18a6 Mon Sep 17 00:00:00 2001 From: Kevin Smith <git@kismith.co.uk> Date: Thu, 31 May 2012 09:24:02 +0100 Subject: Don't report encrypted connections once disconnected. Resolves: #1126 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(); } -- cgit v0.10.2-6-g49f6