From 435061ca8010455e4294a818508e4822cf057d95 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 27 Aug 2010 15:39:18 +0100
Subject: Don't segfault at login-screen exit


diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index f4d67f6..7cd4304 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -149,6 +149,8 @@ MainController::MainController(
 	if (loginAutomatically) {
 		profileSettings_ = new ProfileSettingsProvider(selectedLoginJID, settings_);
 		handleLoginRequest(selectedLoginJID, cachedPassword, cachedCertificate, true, true);
+	} else {
+		profileSettings_ = NULL;
 	}
 }
 
-- 
cgit v0.10.2-6-g49f6