Fix read caused by 71f7011.

Change-Id: I1b494bf0d63d5c8668527d1fe39392ec2f018d3b
This commit is contained in:
Dominik Riebeling 2012-10-06 14:01:35 +02:00
parent 2c3b8bd1e2
commit 78ca74a56f

View file

@ -458,7 +458,7 @@ static int sleeptimer_duration_cb(int action,
case ACTION_EXIT_MENUITEM:
if (initial_duration != global_settings.sleeptimer_duration
&& get_sleep_timer())
set_sleep_timer(global_settings.sleeptimer_duration * 60);
set_sleeptimer_duration(global_settings.sleeptimer_duration);
}
return action;
}