summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorSt├ęphane Doyon <s.doyon@videotron.ca>2007-10-12 04:20:20 +0000
committerSt├ęphane Doyon <s.doyon@videotron.ca>2007-10-12 04:20:20 +0000
commit6d08116691cb56c96fbe88028dfe05e2c6198fef (patch)
treecbf63f38b061d9447c9c92024f75d51a09703b08 /apps/root_menu.c
parent84ed3fd50fa2685c02c58e45a28b9cae247645ef (diff)
downloadrockbox-6d08116691cb56c96fbe88028dfe05e2c6198fef.tar.gz
rockbox-6d08116691cb56c96fbe88028dfe05e2c6198fef.tar.bz2
rockbox-6d08116691cb56c96fbe88028dfe05e2c6198fef.zip
Fix a bug whereby ACTION_TREE_WPS (GO_TO_PREVIOUS_MUSIC) brings us to the
radio, despite playback having been started since we last visited the radio. To reproduce: -go to the radio, -stop and exit it, -go to the browser, and do a playlist insert, or start a playlist from the playlist catalog, anything that starts playback without going to the WPS. -Press ACTION_TREE_WPS. Find yourself back into the radio. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15085 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 358dc0bed6..1c6c868bfc 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -487,10 +487,17 @@ static int load_context_screen(int selection)
else
return GO_TO_PREVIOUS;
}
+
+static int previous_music = GO_TO_WPS;
+
+void previous_music_is_wps(void)
+{
+ previous_music = GO_TO_WPS;
+}
+
void root_menu(void)
{
int previous_browser = GO_TO_FILEBROWSER;
- int previous_music = GO_TO_WPS;
int next_screen = GO_TO_ROOT;
int selected = 0;