bugfix
authorMarcus Eggenberger <egs@quassel-irc.org>
Sat, 19 Jan 2008 17:52:43 +0000 (17:52 +0000)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sat, 19 Jan 2008 17:52:43 +0000 (17:52 +0000)
src/client/treemodel.cpp

index 2983e5f..05b2635 100644 (file)
@@ -87,6 +87,9 @@ void AbstractTreeItem::removeChild(int row) {
 }
 
 void AbstractTreeItem::removeAllChilds() {
+  if(childCount() == 0)
+    return;
+
   emit beginRemoveChilds(0, childCount() - 1);
 
   AbstractTreeItem *child;