[vlc-devel] commit: Qt: currentView initialization (Jakob Leben )

git version control git at videolan.org
Tue Jan 26 05:43:26 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Tue Jan 26 05:41:59 2010 +0100| [382b629a6af7169a5905b0a55d5ed10d08af8de6] | committer: Jakob Leben 

Qt: currentView initialization

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

 .../gui/qt4/components/playlist/standardpanel.cpp  |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index a83a5ba..14ee07f 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -68,9 +68,15 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
 
     int i_viewMode = getSettings()->value( "view-mode", TREE_VIEW ).toInt();
     if( i_viewMode == ICON_VIEW )
-        iconView = new PlIconView( model, this );
+    {
+        createIconView();
+        currentView = iconView;
+    }
     else
+    {
         createTreeView();
+        currentView = treeView;
+    }
 
     getSettings()->endGroup();
 




More information about the vlc-devel mailing list