X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;fp=src%2Fclient%2Ftreemodel.cpp;h=c08737ce33b228edb1e74d07ed90398091b3c354;hp=fde5207044b57d1003403217a44afb6db4f7b693;hb=c8ddabf364eff2400c61cea395aefe69eb8ba1b3;hpb=0fdc92b633d25609933314dc4fd942a7ab5dd94a diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index fde52070..c08737ce 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -101,7 +101,7 @@ void AbstractTreeItem::removeAllChilds() childIter = _childItems.begin(); while (childIter != _childItems.end()) { child = *childIter; - child->setTreeItemFlags({}); // 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 consistency and the child gets deleted anyways child->removeAllChilds(); ++childIter; } @@ -517,7 +517,7 @@ void TreeModel::beginRemoveChilds(int firstRow, int lastRow) disconnect(parentItem->child(i), nullptr, this, nullptr); } - // consitency checks + // consistency checks QModelIndex parent = indexByItem(parentItem); Q_ASSERT(firstRow <= lastRow); Q_ASSERT(parentItem->childCount() > lastRow);