Commit 210b6b33 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/playlist.cpp: sanity check to avoid crashes (doesn't...

* modules/gui/wxwindows/playlist.cpp: sanity check to avoid crashes (doesn't explain why the check is triggered though).
parent 7f95e259
...@@ -497,13 +497,11 @@ void Playlist::UpdateTreeItem( playlist_t *p_playlist, wxTreeItemId item ) ...@@ -497,13 +497,11 @@ void Playlist::UpdateTreeItem( playlist_t *p_playlist, wxTreeItemId item )
{ {
if( ! item.IsOk() ) return; if( ! item.IsOk() ) return;
playlist_item_t *p_item = wxTreeItemData *p_data = treectrl->GetItemData( item );
((PlaylistItem *)treectrl->GetItemData( item ))->p_item; if( !p_data ) return;
if( !p_item ) playlist_item_t *p_item = ((PlaylistItem *)p_data)->p_item;
{ if( !p_item ) return;
return;
}
wxString msg; wxString msg;
wxString duration = wxU( "" ); wxString duration = wxU( "" );
......
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