summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-09 04:46:28 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-09 04:46:28 +0000
commit04dcf117a1008929af1c64e3be4e7fe9b94d2a9b (patch)
treec4a4a8345477a02bd6eaf59fda16c383c66d7593 /apps/gui
parent222080e0ee62638c044d16d64e03e62ee3418949 (diff)
downloadrockbox-04dcf117a1008929af1c64e3be4e7fe9b94d2a9b.zip
rockbox-04dcf117a1008929af1c64e3be4e7fe9b94d2a9b.tar.gz
rockbox-04dcf117a1008929af1c64e3be4e7fe9b94d2a9b.tar.bz2
rockbox-04dcf117a1008929af1c64e3be4e7fe9b94d2a9b.tar.xz
revert part of r19705 which caused fS#9773
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19732 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps.c4
-rw-r--r--apps/gui/gwps.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index d586a9a..c84e7c6 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -687,6 +687,10 @@ long gui_wps_show(void)
}
if (exit) {
+ if (wps_state.id3)
+ strcpy(wps_state.current_track_path, wps_state.id3->path);
+ else
+ wps_state.current_track_path[0] = '\0';
#ifdef HAVE_LCD_CHARCELLS
status_set_record(false);
status_set_audio(false);
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index 3836d92..4193cf8 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -469,6 +469,9 @@ struct wps_state
bool wps_time_countup;
struct mp3entry* id3;
struct mp3entry* nid3;
+ char current_track_path[MAX_PATH]; /* used by root_menu.c to browse to the
+ current track at the time the audio is
+ stopped (so *id3 is invalid) */
};