From 1d5a505019421bed322c7107169ecc82b7751687 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 28 Mar 2012 00:45:42 +1100 Subject: [PATCH] shortcuts: Don't enter shortcuts menu if there are none Change-Id: I83bef377a428829d99343acdefc7a9b826c78dd5 --- apps/shortcuts.c | 5 +++++ 1 file changed, 5 insertions(+) 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)