diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-05-11 16:05:45 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-05-13 18:06:55 +0200 |
commit | 51a5123f5e7557d8b4b358fae77f5ed0590b217a (patch) | |
tree | 5c96d7a65cbc4ea16ad24b783d7ddcc249b33e37 /apps/shortcuts.c | |
parent | b6053c4d543a5d0a8e8c42f6f0c4e225d0760620 (diff) | |
download | rockbox-51a5123f5e7557d8b4b358fae77f5ed0590b217a.tar.gz rockbox-51a5123f5e7557d8b4b358fae77f5ed0590b217a.zip |
shortcuts: 'browse' type: fix ignored name field
see https://forums.rockbox.org/index.php/topic,54619.0.html
Change-Id: I9615ec9ee2e058a67199db96e16cd7008daf0891
Diffstat (limited to 'apps/shortcuts.c')
-rw-r--r-- | apps/shortcuts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 4833b65c74..0c5e285885 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c | |||
@@ -427,7 +427,7 @@ static const char * shortcut_menu_get_name(int selected_item, void * data, | |||
427 | /* No translation support as only soft_shutdown has LANG_SHUTDOWN defined */ | 427 | /* No translation support as only soft_shutdown has LANG_SHUTDOWN defined */ |
428 | return type_strings[SHORTCUT_SHUTDOWN]; | 428 | return type_strings[SHORTCUT_SHUTDOWN]; |
429 | } | 429 | } |
430 | else if (sc->type == SHORTCUT_BROWSER && (sc->u.path)[0] != '\0') | 430 | else if (sc->type == SHORTCUT_BROWSER && sc->name[0] == '\0' && (sc->u.path)[0] != '\0') |
431 | { | 431 | { |
432 | char* pos; | 432 | char* pos; |
433 | if (path_basename(sc->u.path, (const char **)&pos) > 0) | 433 | if (path_basename(sc->u.path, (const char **)&pos) > 0) |