Commit 3d80127e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: restart the playlist in the correct state when closed

Close #3788
parent e339d116
......@@ -151,7 +151,7 @@ void PlaylistWidget::closeEvent( QCloseEvent *event )
{
if( THEDP->isDying() )
{
/* FIXME is it needed ? */
p_intf->p_sys->p_mi->playlistVisible = true;
event->accept();
}
else
......
......@@ -286,12 +286,7 @@ MainInterface::~MainInterface()
settings->setValue( "pl-dock-status", b_plDocked );
/* Save playlist state */
if( playlistWidget )
{
settings->setValue( "playlist-visible",
isPlDocked() ?
playlistVisible :
playlistWidget->isVisible() /* FIXME */ );
}
settings->setValue( "playlist-visible", playlistVisible );
settings->setValue( "adv-controls",
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