mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
shortcuts: 'browse' type: fix ignored name field
see https://forums.rockbox.org/index.php/topic,54619.0.html Change-Id: I9615ec9ee2e058a67199db96e16cd7008daf0891
This commit is contained in:
parent
b6053c4d54
commit
51a5123f5e
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ static const char * shortcut_menu_get_name(int selected_item, void * data,
|
||||||
/* No translation support as only soft_shutdown has LANG_SHUTDOWN defined */
|
/* No translation support as only soft_shutdown has LANG_SHUTDOWN defined */
|
||||||
return type_strings[SHORTCUT_SHUTDOWN];
|
return type_strings[SHORTCUT_SHUTDOWN];
|
||||||
}
|
}
|
||||||
else if (sc->type == SHORTCUT_BROWSER && (sc->u.path)[0] != '\0')
|
else if (sc->type == SHORTCUT_BROWSER && sc->name[0] == '\0' && (sc->u.path)[0] != '\0')
|
||||||
{
|
{
|
||||||
char* pos;
|
char* pos;
|
||||||
if (path_basename(sc->u.path, (const char **)&pos) > 0)
|
if (path_basename(sc->u.path, (const char **)&pos) > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue