X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=2767705cf7aba0da69036362986b46207c3c35ad;hb=7e76b93191c8f19c24709f36992c99f8ee9d508d;hp=6b883d9a9b149c981d955e2ee6ef967eab7a574d;hpb=1fd8229325989fa9b09ba9f45b0287b97f9c321c;p=quassel.git diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index 6b883d9a..2767705c 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -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;