Commit 4907ca61 authored by Laurent Aimar's avatar Laurent Aimar

Revert "Qt: Fix save volume on exit Fixes #2968"

This reverts commit 989ec97a.

 Sadly, config_SaveConfigFile cannot be used that way as it will save randomly
modified settings as well (at least as long as config_Put* is in use in
the core/modules).
parent a869d39d
...@@ -507,15 +507,6 @@ static void *Thread( void *obj ) ...@@ -507,15 +507,6 @@ static void *Thread( void *obj )
/* Save the path */ /* Save the path */
getSettings()->setValue( "filedialog-path", p_intf->p_sys->filepath ); getSettings()->setValue( "filedialog-path", p_intf->p_sys->filepath );
/* Save volume on exit */
audio_volume_t i_volume;
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 );
config_SaveConfigFile( p_intf, NULL );
/* Delete the configuration. Application has to be deleted after that. */ /* Delete the configuration. Application has to be deleted after that. */
delete p_intf->p_sys->mainSettings; delete p_intf->p_sys->mainSettings;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment