summaryrefslogtreecommitdiffstats
path: root/apps/shortcuts.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r--apps/shortcuts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c
index 2e10bad00f..b52ff4a741 100644
--- a/apps/shortcuts.c
+++ b/apps/shortcuts.c
@@ -640,7 +640,10 @@ int do_shortcut_menu(void *ignored)
}
else
{
- onplay_show_playlist_menu(sc->u.path, NULL);
+ onplay_show_playlist_menu(sc->u.path,
+ dir_exists(sc->u.path) ? ATTR_DIRECTORY :
+ filetype_get_attr(sc->u.path),
+ NULL);
}
break;
case SHORTCUT_FILE: