X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=e27640e3891272893e0efacc3660b13cf564bd6f;hp=1a1c4bbaf9b966ee6732fb8dd11f487b109478cd;hb=982359db5545edf340a246cd13dfcdc9bf2ccf33;hpb=32a1f050b3292478f3b130c16ad66f22e6eb25c8 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; }