Commit 5dafe612 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: restart the playlist in the correct state when closed

Close #3788
(cherry picked from commit 3d80127e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d70c1543
...@@ -151,7 +151,7 @@ void PlaylistWidget::closeEvent( QCloseEvent *event ) ...@@ -151,7 +151,7 @@ void PlaylistWidget::closeEvent( QCloseEvent *event )
{ {
if( THEDP->isDying() ) if( THEDP->isDying() )
{ {
/* FIXME is it needed ? */ p_intf->p_sys->p_mi->playlistVisible = true;
event->accept(); event->accept();
} }
else else
......
...@@ -286,12 +286,7 @@ MainInterface::~MainInterface() ...@@ -286,12 +286,7 @@ MainInterface::~MainInterface()
settings->setValue( "pl-dock-status", b_plDocked ); settings->setValue( "pl-dock-status", b_plDocked );
/* Save playlist state */ /* Save playlist state */
if( playlistWidget ) if( playlistWidget )
{ settings->setValue( "playlist-visible", playlistVisible );
settings->setValue( "playlist-visible",
isPlDocked() ?
playlistVisible :
playlistWidget->isVisible() /* FIXME */ );
}
settings->setValue( "adv-controls", settings->setValue( "adv-controls",
getControlsVisibilityStatus() & CONTROLS_ADVANCED ); getControlsVisibilityStatus() & CONTROLS_ADVANCED );
......
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