fixing BR #367
authorMarcus Eggenberger <egs@quassel-irc.org>
Fri, 31 Oct 2008 12:26:17 +0000 (13:26 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Fri, 31 Oct 2008 12:26:17 +0000 (13:26 +0100)
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;