From: RĂ©mi Denis-Courmont Date: Thu, 29 Jul 2010 19:35:07 +0000 (+0300) Subject: Revert "Qt: save volume on exit" X-Git-Tag: 1.2.0-pre1~5616 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=12e711eb3992fc269d47b86004dfd3775fd5e900;p=vlc Revert "Qt: save volume on exit" This reverts commit 47e8817acdc58829acfbf5d02913007164b0a0bf. --- diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index c50327d7dc..d689c4afac 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -507,17 +507,6 @@ static void *Thread( void *obj ) /* Save the path */ getSettings()->setValue( "filedialog-path", p_intf->p_sys->filepath ); - /* Save volume on exit */ - audio_volume_t i_volume; - module_config_t *volconf; - if ( var_InheritBool( p_intf, "qt-autosave-volume" ) ) - aout_VolumeGet( p_intf, &i_volume ); - else - i_volume = config_GetInt( p_intf, "qt-startvolume" ); - config_PutInt( p_intf, "volume", i_volume ); - volconf = config_FindConfig( VLC_OBJECT(p_intf), "volume" ); - if ( volconf ) volconf->b_autosave = true; - /* Delete the configuration. Application has to be deleted after that. */ delete p_intf->p_sys->mainSettings;