From 73c97d9222040b6160321a32e55a5a3913923e5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 27 Apr 2011 21:54:51 +0200
Subject: Reset the login view's isLoggingIn on cancel login.


diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index 6133ffa..63cac11 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -495,6 +495,7 @@ void MainController::handleDisconnected(const boost::optional<ClientError>& erro
 		else if (!rosterController_) { //hasn't been logged in yet
 			signOut();
 			loginWindow_->setMessage(message);
+			loginWindow_->setIsLoggingIn(false);
 		} else {
 			logout();
 			setReconnectTimer();
@@ -508,6 +509,9 @@ void MainController::handleDisconnected(const boost::optional<ClientError>& erro
 			eventController_->handleIncomingEvent(lastDisconnectError_);
 		}
 	}
+	else if (!rosterController_) { //hasn't been logged in yet
+		loginWindow_->setIsLoggingIn(false);
+	}
 }
 
 void MainController::setReconnectTimer() {
-- 
cgit v0.10.2-6-g49f6