]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/bookmarks.cpp
Force a correct size of the dialog at start.
[vlc] / modules / gui / qt4 / dialogs / bookmarks.cpp
index 5f365a2c4e9cfdf35df077b4870816f181d63acb..e3f65189f32b61b679fe169766c16d60ef85193c 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * bookmarks.cpp : Bookmarks
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2007-2008 the VideoLAN team
  *
  * Authors: Antoine Lejeune <phytos@via.ecp.fr>
  *
@@ -19,6 +19,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "dialogs/bookmarks.hpp"
 #include "dialogs_provider.hpp"
@@ -74,10 +77,13 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
     BUTTONACT( clearButton, clear() );
     BUTTONACT( extractButton, extract() );
 
+    readSettings( "Bookmarks" );
+    updateGeometry();
 }
 
 BookmarksDialog::~BookmarksDialog()
 {
+    writeSettings( "Bookmarks" );
 }
 
 void BookmarksDialog::update()