[vlc-devel] commit: Qt4: correct parent when duplicating a PL item (Jakob Leben )

git version control git at videolan.org
Sun Nov 1 15:58:44 CET 2009


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Sun Nov  1 15:51:50 2009 +0100| [d8e75306f8357b90d77bf1ccd3169cca82787d6a] | committer: Jakob Leben 

Qt4: correct parent when duplicating a PL item

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8e75306f8357b90d77bf1ccd3169cca82787d6a
---

 .../gui/qt4/components/playlist/playlist_model.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index f5b6273..9b1d7f0 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -219,7 +219,9 @@ void PLModel::dropAppendCopy( QByteArray& data, PLItem *target )
             PLAYLIST_APPEND | PLAYLIST_SPREPARSE, PLAYLIST_END,
             p_input->i_duration,
             p_input->i_options, p_input->ppsz_options, p_input->optflagc,
-            p_parent == p_playlist->p_local_category, true );
+            ( p_parent == p_playlist->p_local_category ||
+            p_parent == p_playlist->p_local_onelevel ),
+            true );
     }
     PL_UNLOCK;
 }




More information about the vlc-devel mailing list