summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-08-07 12:39:31 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-08-07 12:39:31 (GMT)
commitb0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d (patch)
tree0318a7e0fa43d0659bc6dae25076d9673555a983 /Swift/Controllers/MainController.cpp
parentf40ce8ee1ec79ba6b1a9d6d88de15a0b8dcc60ab (diff)
downloadswift-b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d.zip
swift-b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d.tar.bz2
Don't crash if idle at the login screen.
Resolves: #519
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r--Swift/Controllers/MainController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 20f5901..22e78fe 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -295,6 +295,10 @@ void MainController::sendPresence(boost::shared_ptr<Presence> presence) {
}
void MainController::handleInputIdleChanged(bool idle) {
+ if (!statusTracker_) {
+ //Haven't logged in yet.
+ return;
+ }
if (idle) {
if (statusTracker_->goAutoAway()) {
if (client_ && client_->isAvailable()) {