From a50c2b149497c3213e0d52c5572a70008de13cb6 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 22 Aug 2007 16:33:34 +0000 Subject: Apply fix from FS#6341, with some changes by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14430 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 3defead099..1e5720e154 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -98,6 +98,7 @@ long gui_wps_show(void) bool restore = false; long restoretimer = 0; /* timer to delay screen redraw temporarily */ bool exit = false; + bool bookmark = false; bool update_track = false; int i; long last_left = 0, last_right = 0; @@ -585,6 +586,7 @@ long gui_wps_show(void) case ACTION_WPS_STOP: if (global_settings.party_mode) break; + bookmark = true; exit = true; break; @@ -624,7 +626,6 @@ long gui_wps_show(void) break; #endif case SYS_POWEROFF: - bookmark_autobookmark(); #if LCD_DEPTH > 1 show_main_backdrop(); #endif @@ -676,7 +677,8 @@ long gui_wps_show(void) FOR_NB_SCREENS(i) gui_wps[i].display->stop_scroll(); - bookmark_autobookmark(); + if (bookmark) + bookmark_autobookmark(); audio_stop(); #ifdef AB_REPEAT_ENABLE ab_reset_markers(); -- cgit v1.2.3