diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-06-26 20:05:25 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-06-26 20:05:25 (GMT) |
commit | 0b4d42cce98c712d7117a4bfa5606464bb7103f2 (patch) | |
tree | a8e4616d7462c5ce24b2144fd5a2a901dac0aef5 /Swift | |
parent | 533111880ed9346dc8844f148a5dcfecb5095047 (diff) | |
download | swift-contrib-0b4d42cce98c712d7117a4bfa5606464bb7103f2.zip swift-contrib-0b4d42cce98c712d7117a4bfa5606464bb7103f2.tar.bz2 |
Fix segfault on second sign-in
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index a2fb3a4..1265979 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -95,7 +95,6 @@ MainController::MainController(ChatWindowFactory* chatWindowFactory, MainWindowF systemTrayController_ = new SystemTrayController(eventController_, systemTray); loginWindow_ = loginWindowFactory_->createLoginWindow(uiEventStream_); soundEventController_ = new SoundEventController(eventController_, soundPlayer, settings, uiEventStream_); - statusTracker_ = new StatusTracker(); String selectedLoginJID = settings_->getStringSetting("lastLoginJID"); bool loginAutomatically = settings_->getBoolSetting("loginAutomatically", false); @@ -229,6 +228,7 @@ void MainController::handleConnected() { serverDiscoInfo_ = boost::shared_ptr<DiscoInfo>(new DiscoInfo()); mucSearchController_ = new MUCSearchController(jid_, uiEventStream_, mucSearchWindowFactory_, client_); + statusTracker_ = new StatusTracker(); } boost::shared_ptr<GetDiscoInfoRequest> discoInfoRequest(new GetDiscoInfoRequest(JID(), client_)); |