/***************************************************************************
- * Copyright (C) 2005-2020 by the Quassel Project *
+ * Copyright (C) 2005-2022 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
AbstractTreeItem::AbstractTreeItem(AbstractTreeItem* parent)
: QObject(parent)
, _flags(Qt::ItemIsSelectable | Qt::ItemIsEnabled)
- , _treeItemFlags(nullptr)
{}
bool AbstractTreeItem::newChild(AbstractTreeItem* item)
childIter = _childItems.begin();
while (childIter != _childItems.end()) {
child = *childIter;
- child->setTreeItemFlags(nullptr); // disable self deletion, as this would only fuck up consitency and the child gets deleted anyways
+ child->setTreeItemFlags({}); // disable self deletion, as this would only fuck up consitency and the child gets deleted anyways
child->removeAllChilds();
++childIter;
}