]> git.sesse.net Git - vlc/commitdiff
Fix annoying bug that prevented Bookmark dialog to be shown at first time.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 03:55:37 +0000 (20:55 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 03:57:14 +0000 (20:57 -0700)
Fix by J-Peg.

modules/gui/qt4/dialogs/bookmarks.cpp
modules/gui/qt4/util/qvlcframe.hpp

index 5333783a850399f15b9dabfc31fa6c7f433230c0..097150e37f52f4624f285a4e1a813ae1bd08ee99 100644 (file)
@@ -93,7 +93,7 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf ):QVLCFrame( _p_intf )
 #endif
     BUTTONACT( closeButton, close() );
 
-    readSettings( "Bookmarks" );
+    readSettings( "Bookmarks", QSize( 435, 206 ) );
     updateGeometry();
 }
 
index ad7426cd2716cac6fd288af08ec8a32a2683b943..b5f8e4851d51b3a4f983e9f38be735e4260999e3 100644 (file)
@@ -134,7 +134,7 @@ protected:
     intf_thread_t *p_intf;
 
     void readSettings( QString name,
-                       QSize defSize = QSize( 0, 0 ),
+                       QSize defSize = QSize( 1, 1 ),
                        QPoint defPos = QPoint( 0, 0 ) )
     {
         QVLCTools::restoreWidgetPosition(p_intf, name, this, defSize, defPos);