Commit 4106fd11 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Christophe Mutricy

Don't save geometry if Video is Active.

Close #1775
(cherry picked from commit 0fba5732)
Signed-off-by: default avatarChristophe Mutricy <xtophe@videolan.org>
parent 7752cc3c
...@@ -258,7 +258,13 @@ MainInterface::~MainInterface() ...@@ -258,7 +258,13 @@ MainInterface::~MainInterface()
getControlsVisibilityStatus() & CONTROLS_ADVANCED ); getControlsVisibilityStatus() & CONTROLS_ADVANCED );
if( !videoIsActive ) if( !videoIsActive )
{
QVLCTools::saveWidgetPosition(settings, this); 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() );
...@@ -677,6 +683,8 @@ void MainInterface::releaseVideoSlot( void *p_win ) ...@@ -677,6 +683,8 @@ void MainInterface::releaseVideoSlot( void *p_win )
bgWidget->show(); bgWidget->show();
} }
videoIsActive = false;
/* Try to resize, except when you are in Fullscreen mode */ /* Try to resize, except when you are in Fullscreen mode */
if( !isFullScreen() ) doComponentsUpdate(); if( !isFullScreen() ) doComponentsUpdate();
} }
......
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