diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-08-27 14:39:18 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-08-27 14:39:18 (GMT) |
commit | 435061ca8010455e4294a818508e4822cf057d95 (patch) | |
tree | 7f8b5cd7bd40f0f0f8891ff3366122f78145cab5 /Swift | |
parent | 02e1f82cd154030ea44608d90c7241a0ba8c1795 (diff) | |
download | swift-435061ca8010455e4294a818508e4822cf057d95.zip swift-435061ca8010455e4294a818508e4822cf057d95.tar.bz2 |
Don't segfault at login-screen exit
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |