projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477c565
)
disabling treeitem suicide if the item is deleted due to a cleanup (internal stuff...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sun, 27 Jul 2008 22:30:24 +0000
(
00:30
+0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sun, 27 Jul 2008 22:30:40 +0000
(
00:30
+0200)
src/client/treemodel.cpp
patch
|
blob
|
history
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
4fd2687
..
13b97f9
100644
(file)
--- 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++;
}