Commit 0c5a114a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4 - playlist_model, check if p_item is not null before using it. Patch from Ilkka Ollakka

parent 2e0409a1
...@@ -716,6 +716,8 @@ void PLModel::UpdateTreeItem( PLItem *item, bool signal, bool force ) ...@@ -716,6 +716,8 @@ void PLModel::UpdateTreeItem( PLItem *item, bool signal, bool force )
void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item, void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
bool signal, bool force ) bool signal, bool force )
{ {
if ( !p_item )
return;
if( !force && i_depth == 1 && p_item->p_parent && if( !force && i_depth == 1 && p_item->p_parent &&
p_item->p_parent->i_id != rootItem->i_id ) p_item->p_parent->i_id != rootItem->i_id )
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment