projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typos
[quassel.git]
/
src
/
client
/
treemodel.cpp
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
fde5207
..
c08737c
100644
(file)
--- 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;
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 consi
s
tency and the child gets deleted anyways
child->removeAllChilds();
++childIter;
}
child->removeAllChilds();
++childIter;
}
@@
-517,7
+517,7
@@
void TreeModel::beginRemoveChilds(int firstRow, int lastRow)
disconnect(parentItem->child(i), nullptr, this, nullptr);
}
disconnect(parentItem->child(i), nullptr, this, nullptr);
}
- // consitency checks
+ // consi
s
tency checks
QModelIndex parent = indexByItem(parentItem);
Q_ASSERT(firstRow <= lastRow);
Q_ASSERT(parentItem->childCount() > lastRow);
QModelIndex parent = indexByItem(parentItem);
Q_ASSERT(firstRow <= lastRow);
Q_ASSERT(parentItem->childCount() > lastRow);