diff options
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 2 | ||||
-rw-r--r-- | Swift/Controllers/MainWindow.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 8bd9435..6c862ec 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -291,6 +291,8 @@ void MainController::logout() { if (client_ && client_->isAvailable()) { client_->disconnect(); } + rosterController_->getWindow()->setMyStatusType(StatusShow::None); + rosterController_->getWindow()->setMyStatusText(""); setManagersEnabled(false); } diff --git a/Swift/Controllers/MainWindow.h b/Swift/Controllers/MainWindow.h index 93345ff..b15cbb5 100644 --- a/Swift/Controllers/MainWindow.h +++ b/Swift/Controllers/MainWindow.h @@ -18,6 +18,7 @@ namespace Swift { virtual void setMyName(const String& name) = 0; virtual void setMyAvatarPath(const String& path) = 0; virtual void setMyStatusText(const String& status) = 0; + virtual void setMyStatusType(StatusShow::Type type) = 0; boost::signal<void (const JID&)> onStartChatRequest; boost::signal<void (const JID&, const String&)> onAddContactRequest; |