[vlc-devel] commit: Qt: simplify playlist item deletion (Jakob Leben )
git version control
git at videolan.org
Sun Jan 31 17:29:04 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Sun Jan 31 17:06:55 2010 +0100| [23f2edd6061be58328999375129dd9007b68e2d4] | committer: Jakob Leben
Qt: simplify playlist item deletion
No need to do that check anymore.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23f2edd6061be58328999375129dd9007b68e2d4
---
.../gui/qt4/components/playlist/playlist_model.cpp | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index ba7c3e7..da0fccf 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -808,10 +808,7 @@ void PLModel::doDeleteItem( PLItem *item, QModelIndexList *fullList )
PL_UNLOCK;
return;
}
- if( p_item->i_children == -1 )
- playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
- else
- playlist_NodeDelete( p_playlist, p_item, true, false );
+ playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
PL_UNLOCK;
/* And finally, remove it from the tree */
More information about the vlc-devel
mailing list