diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index aa2ea220fbc872528f22cdf00f40664820352f73..42395b343d474f0c9cefd9e47b9879f45b84fdab 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 );