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-Tag: 0.3.0~206 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=3c3a8f88f9aabd2f30df705fd1d8b147d6441968;hp=477c565e5abd47b8655fc2f44dbcbd812c9c698f 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 4fd26873..13b97f9b 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -84,6 +84,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++; }