From: Marcus Eggenberger Date: Sun, 27 Jul 2008 22:30:24 +0000 (+0200) Subject: disabling treeitem suicide if the item is deleted due to a cleanup (internal stuff... X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;ds=sidebyside;h=5ad4247a9867d108fd584b4d7b1ad9b935579e5b;p=quassel.git disabling treeitem suicide if the item is deleted due to a cleanup (internal stuff only) --- diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index df2d1774..2c795536 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -83,6 +83,7 @@ void AbstractTreeItem::removeAllChilds() { childIter = _childItems.begin(); while(childIter != _childItems.end()) { child = *childIter; + child->setTreeItemFlags(0); // disable self deletion, as this would only fuck up consitency and the child gets deleted anyways child->removeAllChilds(); childIter++; }