diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-08-07 12:39:31 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-08-07 12:39:31 (GMT) |
commit | b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d (patch) | |
tree | 0318a7e0fa43d0659bc6dae25076d9673555a983 | |
parent | f40ce8ee1ec79ba6b1a9d6d88de15a0b8dcc60ab (diff) | |
download | swift-contrib-b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d.zip swift-contrib-b0b9068a9760bcdbbd3d47aa2054d5ac79d16b4d.tar.bz2 |
Don't crash if idle at the login screen.
Resolves: #519
-rw-r--r-- | Swift/Controllers/MainController.cpp | 4 |
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()) { |