summaryrefslogtreecommitdiff
path: root/apps/shortcuts.c
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 /apps/shortcuts.c
parentb2202a3d7cce23c20192c1b62cf2f934f78f61df (diff)
shortcuts: Don't enter shortcuts menu if there are none
Change-Id: I83bef377a428829d99343acdefc7a9b826c78dd5
Diffstat (limited to 'apps/shortcuts.c')
-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)
if (global_settings.talk_menu)
list.get_talk = shortcut_menu_speak_item;
+ if (shortcut_count == 0)
+ {
+ splash(HZ, str(LANG_NO_FILES));
+ return GO_TO_PREVIOUS;
+ }
push_current_activity(ACTIVITY_SHORTCUTSMENU);
while (done == GO_TO_PREVIOUS)