summaryrefslogtreecommitdiffstats
path: root/apps/shortcuts.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r--apps/shortcuts.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c
index 82e4a359bf..3f13d0c1b3 100644
--- a/apps/shortcuts.c
+++ b/apps/shortcuts.c
@@ -660,9 +660,11 @@ int do_shortcut_menu(void *ignored)
done = GO_TO_PLUGIN;
break;
}
- struct browse_context browse;
- browse_context_init(&browse, global_settings.dirfilter, 0,
- NULL, NOICON, sc->u.path, NULL);
+ struct browse_context browse = {
+ .dirfilter = global_settings.dirfilter,
+ .icon = Icon_NOICON,
+ .root = sc->u.path,
+ };
if (sc->type == SHORTCUT_FILE)
browse.flags |= BROWSE_RUNFILE;
done = rockbox_browse(&browse);