summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2012-03-28 00:45:42 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2012-03-28 00:45:42 +1100
commit1d5a505019421bed322c7107169ecc82b7751687 (patch)
tree574e36fd90a4c492626d7885dbfc19a01b3ee1a7
parentb2202a3d7cce23c20192c1b62cf2f934f78f61df (diff)
downloadrockbox-1d5a505019421bed322c7107169ecc82b7751687.tar.gz
rockbox-1d5a505019421bed322c7107169ecc82b7751687.zip
shortcuts: Don't enter shortcuts menu if there are none
Change-Id: I83bef377a428829d99343acdefc7a9b826c78dd5
-rw-r--r--apps/shortcuts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c
index db60d40db2..d7868461a7 100644
--- a/apps/shortcuts.c
+++ b/apps/shortcuts.c
@@ -418,6 +418,11 @@ int do_shortcut_menu(void *ignored)
418 if (global_settings.talk_menu) 418 if (global_settings.talk_menu)
419 list.get_talk = shortcut_menu_speak_item; 419 list.get_talk = shortcut_menu_speak_item;
420 420
421 if (shortcut_count == 0)
422 {
423 splash(HZ, str(LANG_NO_FILES));
424 return GO_TO_PREVIOUS;
425 }
421 push_current_activity(ACTIVITY_SHORTCUTSMENU); 426 push_current_activity(ACTIVITY_SHORTCUTSMENU);
422 427
423 while (done == GO_TO_PREVIOUS) 428 while (done == GO_TO_PREVIOUS)