summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-06-09 18:38:59 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-07-07 16:18:16 (GMT)
commit4fa67e50ff57e2fd4bff80137c59d13e70a2f4a6 (patch)
tree77376e0a595aac8735324094ae4d07f1ece58a53 /Swift/QtUI
parent2598ef4efcd74d5e9e701c62337bf84829572508 (diff)
downloadswift-4fa67e50ff57e2fd4bff80137c59d13e70a2f4a6.zip
swift-4fa67e50ff57e2fd4bff80137c59d13e70a2f4a6.tar.bz2
Add ability to enter rooms when offline
Rooms in the recent chats list and bookmarks can be entered by double click if the user is offline. They are joined when the user goes online again. Test-Information: Tested by going offline via the presence menu and then entering rooms via recent chats and bookmarks. Change-Id: I8c3eadd29c3353c2cf5f04f53b71ef7ad67a5c05
Diffstat (limited to 'Swift/QtUI')
-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_) {