[vlc-commits] commit: Fix MainInterace initial sizing (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Apr 20 21:13:43 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 20 21:12:51 2010 +0200| [fbea59ebe7229dda308db83e10e5d56559b15585] | committer: Jean-Baptiste Kempf 

Fix MainInterace initial sizing

Close #3551

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

 modules/gui/qt4/main_interface.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index aa2ea22..42395b3 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -233,16 +233,16 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* Register callback for the intf-popupmenu variable */
     var_AddCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf );
 
-    /**** FINAL SIZING and placement of interface */
-    settings->beginGroup( "MainWindow" );
-
     /* Playlist */
-    int i_plVis = settings->value( "playlist-visible", false ).toBool();
-    settings->endGroup();
+    int i_plVis = settings->value( "MainWindow/playlist-visible", false ).toBool();
 
     if( i_plVis ) togglePlaylist();
 
+    /**** FINAL SIZING and placement of interface */
+    settings->beginGroup( "MainWindow" );
     QVLCTools::restoreWidgetPosition( settings, this, QSize(400, 100) );
+    settings->endGroup();
+
     /* Final sizing and showing */
     setVisible( !b_hideAfterCreation );
 



More information about the vlc-commits mailing list