summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-11-01 20:19:05 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-11-01 20:19:05 (GMT)
commit8effa7fb6c2e341734be5392566c06e9ac38d1b7 (patch)
tree9e272145318edcc9bd5140d8591658f376bd33be /Swift/QtUI/ChatList
parent4cf2c5dbea1d620f824fda243c588ddf984f7737 (diff)
downloadswift-contrib-8effa7fb6c2e341734be5392566c06e9ac38d1b7.zip
swift-contrib-8effa7fb6c2e341734be5392566c06e9ac38d1b7.tar.bz2
Disable bookmarks when offline.
Resolves: #679 Release-Notes: You can no longer use bookmarks while offline.
Diffstat (limited to 'Swift/QtUI/ChatList')
-rw-r--r--Swift/QtUI/ChatList/QtChatListWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatList/QtChatListWindow.cpp b/Swift/QtUI/ChatList/QtChatListWindow.cpp
index 86dfa8f..887d9a4 100644
--- a/Swift/QtUI/ChatList/QtChatListWindow.cpp
+++ b/Swift/QtUI/ChatList/QtChatListWindow.cpp
@@ -68,6 +68,9 @@ void QtChatListWindow::setupContextMenus() {
}
void QtChatListWindow::handleItemActivated(const QModelIndex& index) {
+ if (!bookmarksEnabled_) {
+ return;
+ }
ChatListItem* item = model_->getItemForIndex(index);
ChatListMUCItem* mucItem = dynamic_cast<ChatListMUCItem*>(item);
if (mucItem) {