Commit 1afe7311 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix leakage in FS controller (part 2)

parent b0090449
...@@ -404,7 +404,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -404,7 +404,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
bool b_fsCreation) : bool b_fsCreation) :
QFrame( _p_mi ), p_intf( _p_i ) QFrame( _p_mi ), p_intf( _p_i )
{ {
setSizePolicy( QSizePolicy::Preferred , QSizePolicy::Maximum ); setSizePolicy( QSizePolicy::Preferred , QSizePolicy::Maximum );
/** The main Slider **/ /** The main Slider **/
slider = new InputSlider( Qt::Horizontal, NULL ); slider = new InputSlider( Qt::Horizontal, NULL );
...@@ -537,7 +537,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -537,7 +537,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
playButton->setIconSize( QSize( 30, 30 ) ); playButton->setIconSize( QSize( 30, 30 ) );
/** Prev + Stop + Next Block **/ /** Prev + Stop + Next Block **/
controlButLayout = new QHBoxLayout; controlButLayout = new QHBoxLayout;
controlButLayout->setSpacing( 0 ); /* Don't remove that, will be useful */ controlButLayout->setSpacing( 0 ); /* Don't remove that, will be useful */
...@@ -578,18 +578,20 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -578,18 +578,20 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
BUTTON_SET_ACT( fullscreenButton, "F", qtr( "Fullscreen" ), fullscreen() ); BUTTON_SET_ACT( fullscreenButton, "F", qtr( "Fullscreen" ), fullscreen() );
setupSmallButton( fullscreenButton ); setupSmallButton( fullscreenButton );
/** Playlist Button **/ if( !b_fsCreation )
playlistButton = new QPushButton; {
setupSmallButton( playlistButton ); /** Playlist Button **/
BUTTON_SET_IMG( playlistButton, "" , playlist.png, qtr( "Show playlist" ) ); playlistButton = new QPushButton;
CONNECT( playlistButton, clicked(), _p_mi, togglePlaylist() ); setupSmallButton( playlistButton );
BUTTON_SET_IMG( playlistButton, "" , playlist.png, qtr( "Show playlist" ) );
/** extended Settings **/ CONNECT( playlistButton, clicked(), _p_mi, togglePlaylist() );
extSettingsButton = new QPushButton;
BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended settings" ), /** extended Settings **/
extSettings() ); extSettingsButton = new QPushButton;
setupSmallButton( extSettingsButton ); BUTTON_SET_ACT( extSettingsButton, "Ex", qtr( "Extended settings" ),
extSettings() );
setupSmallButton( extSettingsButton );
}
/* Volume */ /* Volume */
hVolLabel = new VolumeClickHandler( p_intf, this ); hVolLabel = new VolumeClickHandler( p_intf, this );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment