projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bugfix
[quassel.git]
/
src
/
client
/
treemodel.cpp
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() {
+ if(childCount() == 0)
+ return;
+
emit beginRemoveChilds(0, childCount() - 1);
AbstractTreeItem *child;