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 73eff25..03305f3 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()