X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=13b97f9baf7459641bbdd7089582a080723872f3;hp=4fd26873fc95ba894ad6cc6de0991ef175ae2974;hb=3c3a8f88f9aabd2f30df705fd1d8b147d6441968;hpb=197cf9c0d5e227dd475124515f6e6005cf87ac8e 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++; }