diff options
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 4 |
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); } |