fixes #903 - Odd umode case can make user disappear from nick list
authorMarcus Eggenberger <egs@quassel-irc.org>
Fri, 30 Apr 2010 15:56:18 +0000 (17:56 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 11 May 2010 21:06:29 +0000 (23:06 +0200)
src/client/treemodel.cpp

index cc1b08a..6ab70e6 100644 (file)
@@ -127,6 +127,10 @@ void AbstractTreeItem::customEvent(QEvent *event) {
   if(childRow == -1)
     return;
 
+  // since we are called asynchronously we have to recheck if the item in question still has no childs
+  if(removeEvent->child()->childCount())
+    return;
+
   removeChild(childRow);
 }