vlc | branch: master | Edward Wang <[email protected]> | Mon Jan  2 
12:16:50 2012 +0100| [9bf74a1e7e105ed8f7abc9a12f87eb8b473055b6] | committer: 
Jean-Baptiste Kempf

Qt: ensure currentItem() to be not NULL in PLSelector

Close #5764
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/gui/qt4/components/playlist/selector.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp 
b/modules/gui/qt4/components/playlist/selector.cpp
index 693d454..87316af 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -188,6 +188,7 @@ void PLSelector::createItems()
     PLSelItem *pl = putPLData( addItem( PL_ITEM_TYPE, N_("Playlist"), true ),
                               THEPL->p_playing );
     pl->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_PL ) );
+    setCurrentItem( pl->treeItem() );
 
     /* ML */
     PLSelItem *ml = putPLData( addItem( PL_ITEM_TYPE, N_("Media Library"), 
true ),

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to