projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4507cf
)
bugfix
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 19 Jan 2008 17:52:43 +0000
(17:52 +0000)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 19 Jan 2008 17:52:43 +0000
(17:52 +0000)
src/client/treemodel.cpp
patch
|
blob
|
history
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
2983e5f
..
05b2635
100644
(file)
--- a/
src/client/treemodel.cpp
+++ b/
src/client/treemodel.cpp
@@
-87,6
+87,9
@@
void AbstractTreeItem::removeChild(int row) {
}
void AbstractTreeItem::removeAllChilds() {
}
void AbstractTreeItem::removeAllChilds() {
+ if(childCount() == 0)
+ return;
+
emit beginRemoveChilds(0, childCount() - 1);
AbstractTreeItem *child;
emit beginRemoveChilds(0, childCount() - 1);
AbstractTreeItem *child;