X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fmain_interface.cpp;h=70faab24ebf1fdbe22f3be139060616048dcbd60;hb=473924674c85c5f5c11a5c2e0564ad6cc8f7d566;hp=2c488db3f2a55c2279438229f9e93d4afc564334;hpb=8462c96dd88417db77c726c8ed290ef7f745f873;p=vlc diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 2c488db3f2..70faab24eb 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -110,7 +110,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) i_visualmode = config_GetInt( p_intf, "qt-display-mode" ); /* Set the other interface settings */ - settings = new QSettings( "vlc", "vlc-qt-interface" ); + settings = getSettings(); settings->beginGroup( "MainWindow" ); //TODO: I don't like that code @@ -224,7 +224,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) CONNECT( this, askUpdate(), this, doComponentsUpdate() ); /* Size and placement of interface */ - QVLCTools::restoreWidgetPosition(settings,this,QSize(350,60)); + QVLCTools::restoreWidgetPosition( settings, this, QSize(380, 60) ); /* Playlist */ @@ -250,7 +250,7 @@ MainInterface::~MainInterface() msg_Dbg( p_intf, "Destroying the main interface" ); if( playlistWidget ) - playlistWidget->savingSettings( settings ); + playlistWidget->savingSettings(); settings->beginGroup( "MainWindow" ); @@ -266,7 +266,6 @@ MainInterface::~MainInterface() settings->setValue( "backgroundSize", bgWidget->size() ); settings->endGroup(); - delete settings; var_DelCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );