From 88dbda0ca538b30e0b001344fbcf8a36ff1abe1a Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Tue, 4 Aug 2015 20:55:18 +0200
Subject: Fix broken bookmarks context menu after reconnect

Test-Information:

Tested that the bookmarks context menu still works after an
offline/online cycle.

Change-Id: I9248b7405a6a09bc813c6590e0f2f9a4ed92acb3

diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp
index f39f503..e11d14b 100644
--- a/Swift/Controllers/Chat/ChatsManager.cpp
+++ b/Swift/Controllers/Chat/ChatsManager.cpp
@@ -689,7 +689,6 @@ void ChatsManager::setOnline(bool enabled) {
 		}
 	}
 	if (!enabled) {
-		chatListWindow_->setBookmarksEnabled(false);
 		markAllRecentsOffline();
 	} else {
 		setupBookmarks();
@@ -700,6 +699,9 @@ void ChatsManager::setOnline(bool enabled) {
 		localMUCServiceFinderWalker_->beginWalk();
 	}
 
+	if (chatListWindow_) {
+		chatListWindow_->setBookmarksEnabled(enabled);
+	}
 }
 
 void ChatsManager::handleChatRequest(const std::string &contact) {
-- 
cgit v0.10.2-6-g49f6