]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_model.cpp
playlist_DeleteFromInput: pass the input item rather than its ID
[vlc] / modules / gui / qt4 / components / playlist / playlist_model.cpp
index a474abd94e7abb35f90f535360bce286bce7afcd..5910ce2537d8cf9b3ea107b21cbfd981aac7123c 100644 (file)
@@ -719,7 +719,7 @@ void PLModel::doDeleteItem( PLItem *item, QModelIndexList *fullList )
         return;
     }
     if( p_item->i_children == -1 )
-        playlist_DeleteFromInput( p_playlist, item->i_input_id, pl_Locked );
+        playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
     else
         playlist_NodeDelete( p_playlist, p_item, true, false );
     /* And finally, remove it from the tree */