[vlc-commits] Qt4: fix viewchange if MEDIA_LIBRARY not defined on compile-time

Ilkka Ollakka git at videolan.org
Wed Jul 6 16:15:31 CEST 2011


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Jul  6 17:15:13 2011 +0300| [75ae66eb0ffc178859d56817b28b81e0af81e157] | committer: Ilkka Ollakka

Qt4: fix viewchange if MEDIA_LIBRARY not defined on compile-time

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

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

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index a89cd3f..76d7e25 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -350,6 +350,9 @@ void StandardPLPanel::changeModel( bool b_ml )
         mod = model;
     if( currentView->model() != mod )
         currentView->setModel( mod );
+#else
+    if( currentView->model() != model )
+        currentView->setModel( model );
 #endif
 }
 



More information about the vlc-commits mailing list