]> git.sesse.net Git - vlc/commitdiff
Qt: fix VLM geometry restoration
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Nov 2011 22:13:12 +0000 (23:13 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 18 Nov 2011 22:13:12 +0000 (23:13 +0100)
Forgotten in previous commit

modules/gui/qt4/dialogs/vlm.cpp

index 73eff25e4710c9167e13ab7f52b443437e7d5220..03305f3346a832360543f1ad03cd500c3dc42ac0 100644 (file)
@@ -155,7 +155,11 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCDialog( (QWidget*)_p_intf->
     BUTTONACT( ui.saveButton, saveModifications() );
     BUTTONACT( ui.inputButton, selectInput() );
     BUTTONACT( ui.outputButton, selectOutput() );
-    //readSettings( "VLM", QSize( 700, 500 ) );
+
+    if( !restoreGeometry( getSettings()->value("VLM/geometry").toByteArray() ) )
+    {
+        resize( QSize( 700, 500 ) );
+    }
 }
 
 VLMDialog::~VLMDialog()