diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-02-24 22:45:54 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-02-24 22:45:54 (GMT) |
commit | c1b98cacaf627481d13f974e3cd6653feabf41f7 (patch) | |
tree | 1624cc56f08fd89414627357a73f6a030530e0fe /Swift | |
parent | a985d3044faa52e91f334ad7f1b27eb04e50208b (diff) | |
download | swift-c1b98cacaf627481d13f974e3cd6653feabf41f7.zip swift-c1b98cacaf627481d13f974e3cd6653feabf41f7.tar.bz2 |
Fix segfault on auth failure
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); } |