]> git.sesse.net Git - vlc/commitdiff
Qt4 - remember the position on close and open in the same position.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Dec 2007 04:28:14 +0000 (04:28 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Dec 2007 04:28:14 +0000 (04:28 +0000)
Reference #1374

modules/gui/qt4/main_interface.cpp

index 0271969fe1516bb56574d81d86b61e3f77fdec91..185feccf58262e6f80ee0e34d9e82c79d1f0d503 100644 (file)
@@ -282,8 +282,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     CONNECT( controls, advancedControlsToggled( bool ),
              this, doComponentsUpdate() );
 
+    move( settings->value( "pos", QPoint( 0, 0 ) ).toPoint() );
+
     resize( settings->value( "size", QSize( 350, 60 ) ).toSize() );
     updateGeometry();
+
     settings->endGroup();
 }