Commit 09e49c41 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Always save position on exit.

(cherry picked from commit 9e5938db)
parent ead50221
...@@ -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();
/* Saving volume */ /* Saving volume */
if( config_GetInt( p_intf, "qt-autosave-volume" ) ) if( config_GetInt( p_intf, "qt-autosave-volume" ) )
{ {
...@@ -271,18 +273,10 @@ MainInterface::~MainInterface() ...@@ -271,18 +273,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