X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=fde5207044b57d1003403217a44afb6db4f7b693;hb=24c7de34254b5de4cf28045a6923a527e06f7290;hp=006434c8cab5b62c0187f795a32f103629fe1abb;hpb=47b54cd3ad35201ff2ab9ef6bfdba83fc086558d;p=quassel.git diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index 006434c8..fde52070 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -45,7 +45,6 @@ private: AbstractTreeItem::AbstractTreeItem(AbstractTreeItem* parent) : QObject(parent) , _flags(Qt::ItemIsSelectable | Qt::ItemIsEnabled) - , _treeItemFlags(nullptr) {} bool AbstractTreeItem::newChild(AbstractTreeItem* item) @@ -102,7 +101,7 @@ void AbstractTreeItem::removeAllChilds() 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; }