X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=e27640e3891272893e0efacc3660b13cf564bd6f;hb=b795a7b7b42ab546b1a6db2cba6091f5c3aa91fc;hp=1a1c4bbaf9b966ee6732fb8dd11f487b109478cd;hpb=32a1f050b3292478f3b130c16ad66f22e6eb25c8;p=quassel.git diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index 1a1c4bba..e27640e3 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -104,9 +104,10 @@ QModelIndexList NickView::selectedIndexes() const { QModelIndexList indexList = QTreeView::selectedIndexes(); // make sure the item we clicked on is first - Q_ASSERT(indexList.contains(currentIndex())); - indexList.removeAll(currentIndex()); - indexList.prepend(currentIndex()); + if(indexList.contains(currentIndex())) { + indexList.removeAll(currentIndex()); + indexList.prepend(currentIndex()); + } return indexList; }