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 e04b5b6..f5cd1d9 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();
 }