Commit 638daae0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Quick hack to solve the save volume on exit.

This is of course NOT a good solution, and it has nothing to do in the interface...
So, either we let it like this, or we implement in the good place (not in intf)
or we remove this option
parent c31d99fd
......@@ -249,6 +249,15 @@ MainInterface::~MainInterface()
{
msg_Dbg( p_intf, "Destroying the main interface" );
/* Saving volume */
if( config_GetInt( p_intf, "qt-autosave-volume" ) )
{
audio_volume_t i_volume;
aout_VolumeGet( p_intf, &i_volume );
config_PutInt( p_intf, "volume", i_volume );
config_SaveConfigFile( p_intf, NULL );
}
if( playlistWidget )
{
if( !isDocked() )
......
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