summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-08-08 09:16:38 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-08-08 09:16:38 (GMT)
commit84cc4e93c5e3f68d055cbddf8072025d91c44a23 (patch)
tree195a68c62c5e2ca81bf5ce28eeabfe5dadd4fd01 /Swift/QtUI/ChatList/QtChatListWindow.cpp
parentb4bdfea96ac0e0971109df94b3b71f79adefefe9 (diff)
downloadswift-contrib-84cc4e93c5e3f68d055cbddf8072025d91c44a23.zip
swift-contrib-84cc4e93c5e3f68d055cbddf8072025d91c44a23.tar.bz2
Moved chatListView managing out of WhiteboardManager
Diffstat (limited to 'Swift/QtUI/ChatList/QtChatListWindow.cpp')
-rw-r--r--Swift/QtUI/ChatList/QtChatListWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/ChatList/QtChatListWindow.cpp b/Swift/QtUI/ChatList/QtChatListWindow.cpp
index 7561820..9692c9c 100644
--- a/Swift/QtUI/ChatList/QtChatListWindow.cpp
+++ b/Swift/QtUI/ChatList/QtChatListWindow.cpp
@@ -22,6 +22,7 @@
#include <Swift/Controllers/UIEvents/AddMUCBookmarkUIEvent.h>
#include <Swift/Controllers/UIEvents/RemoveMUCBookmarkUIEvent.h>
#include <Swift/Controllers/UIEvents/EditMUCBookmarkUIEvent.h>
+#include <Swift/Controllers/UIEvents/ShowWhiteboardUIEvent.h>
#include <Swift/Controllers/Settings/SettingsProvider.h>
@@ -100,7 +101,7 @@ void QtChatListWindow::handleItemActivated(const QModelIndex& index) {
}
else if (ChatListWhiteboardItem* whiteboardItem = dynamic_cast<ChatListWhiteboardItem*>(item)) {
if (!whiteboardItem->getChat().isMUC || bookmarksEnabled_) {
- onWhiteboardActivated(whiteboardItem->getChat().jid);
+ eventStream_->send(boost::make_shared<ShowWhiteboardUIEvent>(whiteboardItem->getChat().jid));
}
}
}