fixing BR #367
[quassel.git] / src / uisupport / nickview.cpp
index 6b883d9..2767705 100644 (file)
@@ -144,7 +144,10 @@ void NickView::showContextMenu(const QPoint & pos ) {
 
 }
 
-void NickView::startQuery(const QModelIndex & index) {
+void NickView::startQuery(const QModelIndex &index) {
+  if(index.data(NetworkModel::ItemTypeRole) != NetworkModel::IrcUserItemType)
+    return;
+
   QString nick = nickFromModelIndex(index);
   bool activated = false;