From 05ace8e095f3de6332560b364a158321867c7bba Mon Sep 17 00:00:00 2001 From: Torne Wuff Date: Sun, 28 Mar 2010 23:27:49 +0000 Subject: Fix "bookmark on stop: ask" when idle poweroff triggers. Previously, the prompt would come up during poweroff, and then if the user did not respond, the shutdown timeout would be hit and a hard poweroff would happen, which is bad. Now it just assumes you don't want a bookmark. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25376 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index 554d29e630..f9c6116205 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -291,7 +291,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) #ifdef SIMULATOR (void)callback; (void)parameter; - bookmark_autobookmark(); + bookmark_autobookmark(false); call_storage_idle_notifys(true); exit(0); #else @@ -356,7 +356,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) sleep(1); } #endif - bookmark_autobookmark(); + bookmark_autobookmark(false); /* audio_stop_recording == audio_stop for HWCODEC */ audio_stop(); @@ -420,7 +420,7 @@ bool list_stop_handler(void) { if (global_settings.fade_on_stop) fade(false, false); - bookmark_autobookmark(); + bookmark_autobookmark(true); audio_stop(); ret = true; /* bookmarking can make a refresh necessary */ } -- cgit v1.2.3