summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-11-23 12:26:08 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2023-11-23 12:26:08 -0500
commit53a47970e30bbe518442aa59e4ff5b126c66c581 (patch)
treea9c9d6dfda49642ceeb25908b4cf67afd863b18d /apps/plugins
parent5c60975d4fd3c1d20ecd2910bb7334fe510a8856 (diff)
downloadrockbox-53a47970e30bbe518442aa59e4ff5b126c66c581.tar.gz
rockbox-53a47970e30bbe518442aa59e4ff5b126c66c581.zip
[BUGFIX] some files wouldn't run as shortcut
make sure we have a chance to get the dirfilter otherwise it may be rejected adds some sanity checks and safeguards too Change-Id: Ibdad288ace0c8bf6ac7b8f46722a43aebead829e
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/shortcuts/shortcuts_view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c
index 187ed740a1..e0146f3174 100644
--- a/apps/plugins/shortcuts/shortcuts_view.c
+++ b/apps/plugins/shortcuts/shortcuts_view.c
@@ -247,6 +247,7 @@ int goto_entry(char *file_or_dir)
247 if (open_browse(file_or_dir, tmp_buf, sizeof(tmp_buf))) 247 if (open_browse(file_or_dir, tmp_buf, sizeof(tmp_buf)))
248 { 248 {
249 DEBUGF("Trying to load '%s'...\n", tmp_buf); 249 DEBUGF("Trying to load '%s'...\n", tmp_buf);
250 rb->set_dirfilter(rb->global_settings->dirfilter);
250 rb->set_current_file(tmp_buf); 251 rb->set_current_file(tmp_buf);
251 return LOOP_EXIT; 252 return LOOP_EXIT;
252 } 253 }