From 48bb7441f913144d6a20687ff79264e4631156f0 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Thu, 12 Nov 2009 20:21:08 +0000
Subject: Reconnect in the MainController check the Client's connectedness.


diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index bc16922..e7d67f7 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -193,7 +193,7 @@ void MainController::handleChangeStatusRequest(StatusShow::Type show, const Stri
 		presence->setShow(show);
 	}
 	presence->setStatus(statusText);
-	if (presence->getType() != Presence::Unavailable && !client_) {
+	if (presence->getType() != Presence::Unavailable && !client_->isAvailable()) {
 		performLoginFromCachedCredentials();
 		queuedPresence_ = presence;
 	} else {
-- 
cgit v0.10.2-6-g49f6