mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
fix regression: playlist name suggestion for db and pictureflow items
In 2c4c1b9
, I missed the fact that we still need these,
so that slashes in names aren't interpreted as a path
separator.
Change-Id: I2df0745669c4673497a506a99e754c63dcba045e
This commit is contained in:
parent
5f3dcaba49
commit
4f5c9d9759
2 changed files with 2 additions and 0 deletions
|
@ -4256,6 +4256,7 @@ static int context_menu(void)
|
|||
/* add a leading slash so that catalog_add_to_a_playlist
|
||||
later prefills the name when creating a new playlist */
|
||||
rb->snprintf(album_name, MAX_PATH, "/%s", get_album_name(center_index));
|
||||
rb->fix_path_part(album_name, 1, sizeof(album_name) - 2);
|
||||
file_name = album_name;
|
||||
attr = ATTR_DIRECTORY;
|
||||
}
|
||||
|
|
|
@ -900,6 +900,7 @@ static int dirbrowse(void)
|
|||
attr = ATTR_DIRECTORY;
|
||||
tagtree_get_entry_name(&tc, tc.selected_item,
|
||||
buf, sizeof(buf));
|
||||
fix_path_part(buf, 0, sizeof(buf) - 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue