summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-07-06 00:07:25 +0000
committerThomas Martitz <kugel@rockbox.org>2009-07-06 00:07:25 +0000
commit9e05a2f5b090b16c58c18d00e5d5c30b170083be (patch)
treebc74f4cbdbc29a029e18746834a132ef78de8d8c /apps
parentf4c31ae3094665fc5c71e98e185aa712ebdb9598 (diff)
Fix returning too early (before cleanup) in RFAC, which led to not cancelling
boosting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/random_folder_advance_config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c
index 2d3959ac1f..28546a340c 100644
--- a/apps/plugins/random_folder_advance_config.c
+++ b/apps/plugins/random_folder_advance_config.c
@@ -537,6 +537,7 @@ int start_shuffled_play(void)
enum plugin_status main_menu(void)
{
+ bool exit = false;
MENUITEM_STRINGLIST(menu, "Main Menu", NULL,
"Generate Folder List",
"Edit Folder List",
@@ -545,7 +546,7 @@ enum plugin_status main_menu(void)
"Play Shuffled",
"Quit");
- while (true)
+ while (!exit)
{
switch (rb->do_menu(&menu, NULL, NULL, false))
{
@@ -567,7 +568,7 @@ enum plugin_status main_menu(void)
rb->cpu_boost(true);
#endif
if (edit_list() < 0)
- return PLUGIN_OK;
+ exit = true;
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
@@ -611,6 +612,7 @@ enum plugin_status main_menu(void)
return PLUGIN_OK;
}
}
+ return PLUGIN_OK;
}
enum plugin_status plugin_start(const void* parameter)