Fix dialog saving size regression. Close #1867.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 17 Aug 2008 03:04:18 +0000 (20:04 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 17 Aug 2008 03:04:18 +0000 (20:04 -0700)
modules/gui/qt4/dialogs/open.cpp

index 88df3e1..47e14fe 100644 (file)
@@ -165,10 +165,14 @@ OpenDialog::OpenDialog( QWidget *parent,
     /* Initialize caching */
     storedMethod = "";
     newCachingMethod( "file-caching" );
+
+    resize( getSettings()->value( "opendialog-size", QSize( 520, 490 ) ).toSize() );
 }
 
 OpenDialog::~OpenDialog()
-{}
+{
+    getSettings()->setValue( "opendialog-size", size() );
+}
 
 /* Finish the dialog and decide if you open another one after */
 void OpenDialog::setMenuAction()