]> git.sesse.net Git - vlc/commitdiff
Qt: Deactivate coverflow for releases until someone actually fixes it
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 8 Sep 2011 22:55:52 +0000 (00:55 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 11 Sep 2011 20:00:51 +0000 (22:00 +0200)
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp

index ffdb78f8fc8123b193a0cf515bbc7dfe35f7f874..7193040926a74128851f2f375af32ee43894104b 100644 (file)
@@ -126,7 +126,12 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
 
     QActionGroup *actionGroup = new QActionGroup( this );
 
-    for( int i = 0; i < StandardPLPanel::VIEW_COUNT; i++ )
+#ifndef NDEBUG
+# define MAX_VIEW StandardPLPanel::VIEW_COUNT
+#else
+# define MAX_VIEW StandardPLPanel::VIEW_COUNT - 1
+#endif
+    for( int i = 0; i < MAX_VIEW; i++ )
     {
         viewActions[i] = actionGroup->addAction( viewNames[i] );
         viewActions[i]->setCheckable( true );
index af72e591face8567f99bd5ed8b830cd7f0eca0d7..023ecf07687412b040f116308d23e56dd07a1665 100644 (file)
@@ -421,8 +421,10 @@ void StandardPLPanel::cycleViews()
     else if( currentView == treeView )
         showView( LIST_VIEW );
     else if( currentView == listView )
+#ifndef NDEBUG
         showView( PICTUREFLOW_VIEW  );
     else if( currentView == picFlowView )
+#endif
         showView( ICON_VIEW );
     else
         assert( 0 );