--- playlist_model.cpp.orig	2007-07-13 13:36:05.105694000 +0200
+++ playlist_model.cpp	2007-07-17 10:45:14.309955000 +0200
@@ -648,11 +648,13 @@
     /* Clear the tree */
     if( rootItem )
     {
+      if (rootItem->children.size()) {
         beginRemoveRows( index( rootItem, 0 ), 0,
                          rootItem->children.size() -1 );
         qDeleteAll( rootItem->children );
         rootItem->children.clear();
         endRemoveRows();
+      }
     }
     if( p_root )
     {
