summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-01-01 09:22:05 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-01-01 20:28:16 (GMT)
commitfb435e37edac514498fea02fd61baf38d9e2cb12 (patch)
tree5322d858c0e4c54501a0c43ae69be99a5add7197 /Swift/Controllers
parent3adfdcfdeabddc25d8234cbea4e5cd05b72d0a49 (diff)
downloadswift-fb435e37edac514498fea02fd61baf38d9e2cb12.zip
swift-fb435e37edac514498fea02fd61baf38d9e2cb12.tar.bz2
Silence scan-build warning.
Change-Id: I20f9fb39d0dfd7c29e69323bb49473c0213845ff
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/MainController.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index c5bfcb8..195eeaf 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -4,6 +4,12 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
+/*
+ * Copyright (c) 2013 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
#include <Swift/Controllers/MainController.h>
#include <boost/bind.hpp>
@@ -369,7 +375,9 @@ void MainController::handleConnected() {
contactEditController_->setAvailable(true);
/* Send presence later to catch all the incoming presences. */
sendPresence(statusTracker_->getNextPresence());
+
/* Enable chats last of all, so rejoining MUCs has the right sent presence */
+ assert(chatsManager_);
chatsManager_->setOnline(true);
}