summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers')
-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()) {