]> git.sesse.net Git - vlc/commitdiff
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 60f47f97993e4b81caada4da66d859f642a9c0ad..13e7671e70e4554d5376ee51762f16cc504c9ac7 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;