qt4 - playlist_model, check if p_item is not null before using it. Patch from Ilkka...
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 20 May 2007 11:53:32 +0000 (11:53 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 20 May 2007 11:53:32 +0000 (11:53 +0000)
modules/gui/qt4/playlist_model.cpp

index 60f47f9..13e7671 100644 (file)
@@ -716,6 +716,8 @@ void PLModel::UpdateTreeItem( PLItem *item, bool signal, bool force )
 void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
                               bool signal, bool force )
 {
+    if ( !p_item )
+        return;
     if( !force && i_depth == 1 && p_item->p_parent &&
                                  p_item->p_parent->i_id != rootItem->i_id )
         return;