diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-10-16 07:08:59 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-10-16 07:08:59 (GMT) |
commit | a8705f484480854816bc6807f1c56b0cf987faff (patch) | |
tree | 759fc843b78c16915562d2db0726c018cbaeb42d /Swift/Controllers | |
parent | 87775c50a1c9a223f554c37e549ea8a2b03c9a89 (diff) | |
download | swift-contrib-a8705f484480854816bc6807f1c56b0cf987faff.zip swift-contrib-a8705f484480854816bc6807f1c56b0cf987faff.tar.bz2 |
Mark as offline in the roster after an error.
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; |