disabling treeitem suicide if the item is deleted due to a cleanup (internal stuff...
authorMarcus Eggenberger <egs@quassel-irc.org>
Sun, 27 Jul 2008 22:30:24 +0000 (00:30 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sun, 27 Jul 2008 22:30:40 +0000 (00:30 +0200)
src/client/treemodel.cpp

index 4fd2687..13b97f9 100644 (file)
@@ -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++;
   }