From 6fcdfb046a1ad84620628cadef3375b2434c0085 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 9 Sep 2011 00:55:52 +0200 Subject: [PATCH] Qt: Deactivate coverflow for releases until someone actually fixes it --- modules/gui/qt4/components/playlist/playlist.cpp | 7 ++++++- modules/gui/qt4/components/playlist/standardpanel.cpp | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp index ffdb78f8fc..7193040926 100644 --- a/modules/gui/qt4/components/playlist/playlist.cpp +++ b/modules/gui/qt4/components/playlist/playlist.cpp @@ -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 ); diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index af72e591fa..023ecf0768 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -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 ); -- 2.39.5