summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r--Swift/Controllers/MainController.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 074369e..cbfb065 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -335,7 +335,9 @@ void MainController::logout() {
}
void MainController::setManagersEnabled(bool enabled) {
- chatsManager_->setEnabled(enabled);
+ if (chatsManager_) {
+ chatsManager_->setEnabled(enabled);
+ }
if (rosterController_) {
rosterController_->setEnabled(enabled);
}