Commit 9e5938db authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Always save position on exit.

parent 4a982bfe
...@@ -249,6 +249,8 @@ MainInterface::~MainInterface() ...@@ -249,6 +249,8 @@ MainInterface::~MainInterface()
{ {
msg_Dbg( p_intf, "Destroying the main interface" ); msg_Dbg( p_intf, "Destroying the main interface" );
if( videoIsActive ) videoWidget->hide();
if( playlistWidget ) if( playlistWidget )
{ {
if( !isDocked() ) if( !isDocked() )
...@@ -262,18 +264,10 @@ MainInterface::~MainInterface() ...@@ -262,18 +264,10 @@ MainInterface::~MainInterface()
settings->setValue( "adv-controls", settings->setValue( "adv-controls",
getControlsVisibilityStatus() & CONTROLS_ADVANCED ); getControlsVisibilityStatus() & CONTROLS_ADVANCED );
if( !videoIsActive )
{
QVLCTools::saveWidgetPosition(settings, this);
}
else
{
msg_Dbg( p_intf, "Not saving because video is in use." );
}
if( bgWidget ) if( bgWidget )
settings->setValue( "backgroundSize", bgWidget->size() ); settings->setValue( "backgroundSize", bgWidget->size() );
QVLCTools::saveWidgetPosition(settings, this);
settings->endGroup(); settings->endGroup();
var_DelCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf ); var_DelCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );
......
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