summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-02-24 22:45:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-02-24 22:45:54 (GMT)
commitc1b98cacaf627481d13f974e3cd6653feabf41f7 (patch)
tree1624cc56f08fd89414627357a73f6a030530e0fe
parenta985d3044faa52e91f334ad7f1b27eb04e50208b (diff)
downloadswift-contrib-c1b98cacaf627481d13f974e3cd6653feabf41f7.zip
swift-contrib-c1b98cacaf627481d13f974e3cd6653feabf41f7.tar.bz2
Fix segfault on auth failure
-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);
}