From fb435e37edac514498fea02fd61baf38d9e2cb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Tue, 1 Jan 2013 10:22:05 +0100 Subject: Silence scan-build warning. Change-Id: I20f9fb39d0dfd7c29e69323bb49473c0213845ff 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 #include @@ -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); } -- cgit v0.10.2-6-g49f6