shortcuts: Don't enter shortcuts menu if there are none

Change-Id: I83bef377a428829d99343acdefc7a9b826c78dd5
This commit is contained in:
Jonathan Gordon 2012-03-28 00:45:42 +11:00
parent b2202a3d7c
commit 1d5a505019

View file

@ -418,6 +418,11 @@ int do_shortcut_menu(void *ignored)
if (global_settings.talk_menu) if (global_settings.talk_menu)
list.get_talk = shortcut_menu_speak_item; 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); push_current_activity(ACTIVITY_SHORTCUTSMENU);
while (done == GO_TO_PREVIOUS) while (done == GO_TO_PREVIOUS)