Commit 60b0e228 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

audio_list_song: Don't display track number when not displaying an album

parent 12ff6966
......@@ -67,7 +67,8 @@ genlist_text_get_cb(void *data, Evas_Object *obj, const char *part)
/* Then put this string as the genlist item label */
if (itc->item_style && !strcmp(itc->item_style, "")) {
if (part && !strcmp(part, "")) {
if (ali->p_media_item->i_track_number > 0)
// Don't display track number out of the album songs view (ie. when psz_album_name != NULL)
if (ali->p_media_item->i_track_number > 0 && ali->p_list->psz_album_name != NULL)
asprintf(&buf, "%d - <b>%s</b>", ali->p_media_item->i_track_number, media_item_title(ali->p_media_item));
asprintf(&buf, "<b>%s</b>", media_item_title(ali->p_media_item));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment