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