summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/ChatList/QtChatListWindow.cpp')
-rw-r--r--Swift/QtUI/ChatList/QtChatListWindow.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Swift/QtUI/ChatList/QtChatListWindow.cpp b/Swift/QtUI/ChatList/QtChatListWindow.cpp
index 7b40f9c..b990b84 100644
--- a/Swift/QtUI/ChatList/QtChatListWindow.cpp
+++ b/Swift/QtUI/ChatList/QtChatListWindow.cpp
@@ -96,14 +96,10 @@ void QtChatListWindow::setupContextMenus() {
96void QtChatListWindow::handleItemActivated(const QModelIndex& index) { 96void QtChatListWindow::handleItemActivated(const QModelIndex& index) {
97 ChatListItem* item = model_->getItemForIndex(index); 97 ChatListItem* item = model_->getItemForIndex(index);
98 if (ChatListMUCItem* mucItem = dynamic_cast<ChatListMUCItem*>(item)) { 98 if (ChatListMUCItem* mucItem = dynamic_cast<ChatListMUCItem*>(item)) {
99 if (bookmarksEnabled_) { 99 onMUCBookmarkActivated(mucItem->getBookmark());
100 onMUCBookmarkActivated(mucItem->getBookmark());
101 }
102 } 100 }
103 else if (ChatListRecentItem* recentItem = dynamic_cast<ChatListRecentItem*>(item)) { 101 else if (ChatListRecentItem* recentItem = dynamic_cast<ChatListRecentItem*>(item)) {
104 if (!recentItem->getChat().isMUC || bookmarksEnabled_) { 102 onRecentActivated(recentItem->getChat());
105 onRecentActivated(recentItem->getChat());
106 }
107 } 103 }
108 else if (ChatListWhiteboardItem* whiteboardItem = dynamic_cast<ChatListWhiteboardItem*>(item)) { 104 else if (ChatListWhiteboardItem* whiteboardItem = dynamic_cast<ChatListWhiteboardItem*>(item)) {
109 if (!whiteboardItem->getChat().isMUC || bookmarksEnabled_) { 105 if (!whiteboardItem->getChat().isMUC || bookmarksEnabled_) {