since seezer was too slow: fixing double click buffer switches in the chatmonitor
[quassel.git] / src / qtui / chatmonitorview.cpp
index 5501412..4316486 100644 (file)
@@ -77,7 +77,7 @@ void ChatMonitorView::mouseDoubleClickEvent(QMouseEvent *event) {
     return;
   }
 
-  ChatItem *chatItem = dynamic_cast<ChatItem *>(itemAt(event->pos()));
+  ChatItem *chatItem = scene()->chatItemAt(mapToScene(event->pos()));
   if(!chatItem) {
     event->ignore();
     return;