git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e0409a
)
qt4 - playlist_model, check if p_item is not null before using it. Patch from Ilkka...
author
Jean-Baptiste Kempf
<jb@videolan.org>
Sun, 20 May 2007 11:53:32 +0000
(11:53 +0000)
committer
Jean-Baptiste Kempf
<jb@videolan.org>
Sun, 20 May 2007 11:53:32 +0000
(11:53 +0000)
modules/gui/qt4/playlist_model.cpp
patch
|
blob
|
history
diff --git
a/modules/gui/qt4/playlist_model.cpp
b/modules/gui/qt4/playlist_model.cpp
index
60f47f9
..
13e7671
100644
(file)
--- a/
modules/gui/qt4/playlist_model.cpp
+++ b/
modules/gui/qt4/playlist_model.cpp
@@
-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;