]> git.sesse.net Git - vlc/commitdiff
Don't save geometry if Video is Active.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 02:12:00 +0000 (19:12 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 02:12:00 +0000 (19:12 -0700)
Close #1775

modules/gui/qt4/main_interface.cpp

index e04b5b6d120849d0a4a6326820e4207e7c718071..f5cd1d94cbfb943aa89c840f0f2d6025922a916c 100644 (file)
@@ -258,7 +258,13 @@ MainInterface::~MainInterface()
                         getControlsVisibilityStatus() & CONTROLS_ADVANCED );
 
     if( !videoIsActive )
+    {
         QVLCTools::saveWidgetPosition(settings, this);
+    }
+    else
+    {
+        msg_Dbg( p_intf, "Not saving because video is in use." );
+    }
 
     if( bgWidget )
         settings->setValue( "backgroundSize", bgWidget->size() );
@@ -677,6 +683,8 @@ void MainInterface::releaseVideoSlot( void *p_win )
         bgWidget->show();
     }
 
+    videoIsActive = false;
+
     /* Try to resize, except when you are in Fullscreen mode */
     if( !isFullScreen() ) doComponentsUpdate();
 }