[vlc-devel] commit: Fix dialog saving size regression. Close #1867. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Aug 17 05:01:43 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Aug 16 20:04:18 2008 -0700| [a2ae519cc642095aea9dec77cd7081b5f91574db] | committer: Jean-Baptiste Kempf 

Fix dialog saving size regression. Close #1867.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2ae519cc642095aea9dec77cd7081b5f91574db
---

 modules/gui/qt4/dialogs/open.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 88df3e1..47e14fe 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -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()




More information about the vlc-devel mailing list