disabling treeitem suicide if the item is deleted due to a cleanup (internal stuff...
[quassel.git] / 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++;
   }