]> git.sesse.net Git - vlc/commitdiff
Qt4 - save the mainInterface size only if there was no video playing when you quit.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Feb 2008 11:14:41 +0000 (11:14 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Feb 2008 11:14:41 +0000 (11:14 +0000)
modules/gui/qt4/main_interface.cpp

index bc5ff63e187ae8e5bfd2c1823421cfbe3f662cbf..620fc5420030f2934b1c1d3aa3176291fb2ca42f 100644 (file)
@@ -280,7 +280,8 @@ MainInterface::~MainInterface()
     settings->setValue( "adv-controls",
                         getControlsVisibilityStatus() & CONTROLS_ADVANCED );
     settings->setValue( "pos", pos() );
-    settings->setValue( "size", size() );
+    if( !videoIsActive )
+        settings->setValue( "size", size() );
     if( bgWidget )
         settings->setValue( "backgroundSize", bgWidget->size() );