summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-01-15 22:46:49 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-01-15 22:46:49 +0000
commit86a4499d28efbc87d30ac1e1ac6c257f3624611a (patch)
treec212db3ad54175d9edc7576356a19ea23582b953 /apps
parent3568d39011aa2b024ec8cdc25d06d4fe0d38fdfa (diff)
resume_index was being reset too early in ask once resume mode resulting in incorrect track being played.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 29903e05cd..0cb958447f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -467,11 +467,6 @@ bool ask_resume(void)
if ( global_settings.resume == RESUME_ON )
return true;
- if ( global_settings.resume == RESUME_ASK_ONCE) {
- global_settings.resume_index = -1;
- settings_save();
- }
-
lcd_clear_display();
lcd_puts(0,0,str(LANG_RESUME_ASK));
#ifdef HAVE_LCD_CHARCELLS
@@ -485,6 +480,12 @@ bool ask_resume(void)
if (button_get(true) == BUTTON_PLAY)
return true;
+
+ if ( global_settings.resume == RESUME_ASK_ONCE) {
+ global_settings.resume_index = -1;
+ settings_save();
+ }
+
return false;
}