From: Sebastian Birk Date: Wed, 2 Jun 2010 09:19:06 +0000 (+0200) Subject: playlist: modified playlist_NodeCreate() X-Git-Tag: 1.2.0-pre1~6356 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b0db307c4cf3ac509fe33079f132a0dc6c939e22;p=vlc playlist: modified playlist_NodeCreate() The passed flags in the variable i_flags are now applied to the new node. This solves bug ticket #3690, where it was possible to delete the "Playlist" and "Media Library" nodes, since the read-only flag was not set for them. --- diff --git a/src/playlist/tree.c b/src/playlist/tree.c index eae53bde2c..152af3fdcc 100644 --- a/src/playlist/tree.c +++ b/src/playlist/tree.c @@ -85,6 +85,9 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, playlist_SendAddNotify( p_playlist, p_item->i_id, p_parent ? p_parent->i_id : -1, !( i_flags & PLAYLIST_NO_REBUILD )); + + p_item->i_flags |= i_flags + return p_item; }