[vlc-commits] Qt: ensure currentItem() to be not NULL in PLSelector

Edward Wang git at videolan.org
Mon Jan 2 17:20:03 CET 2012


vlc/vlc-1.2 | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jan  2 12:16:50 2012 +0100| [ec9c958ac55a3c388f88f04abb51c4e4f4192cc1] | committer: Jean-Baptiste Kempf

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

Close #5764
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 9bf74a1e7e105ed8f7abc9a12f87eb8b473055b6)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 ),



More information about the vlc-commits mailing list