From: Marcus Eggenberger Date: Fri, 30 Apr 2010 15:56:18 +0000 (+0200) Subject: fixes #903 - Odd umode case can make user disappear from nick list X-Git-Tag: 0.7-beta1~91 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=9f027bb47c11c2c55f08d5ecee0df769f889c8c7;hp=b83a4e42913fe10343be6e6c05a45916e6304ffc;p=quassel.git fixes #903 - Odd umode case can make user disappear from nick list --- diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index cc1b08a8..6ab70e62 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -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); }