Store radio station 'name' field in extra map

This commit is contained in:
craig.p.drummond
2014-06-16 19:14:18 +00:00
committed by craig.p.drummond
parent 0fd082e595
commit 0e4bfcea2a
14 changed files with 70 additions and 44 deletions

View File

@@ -106,11 +106,12 @@ void AlbumView::refresh()
void AlbumView::update(const Song &song, bool force)
{
if (song.isStandardStream() && song.album.isEmpty() && !song.name.isEmpty() && song.name!=currentSong.name) {
QString streamName=song.isStandardStream() && song.album.isEmpty() ? song.name() : QString();
if (!streamName.isEmpty() && streamName!=currentSong.name()) {
abort();
currentSong=song;
clearDetails();
setHeader(song.name);
setHeader(streamName);
needToUpdate=false;
detailsReceived=All;
pic=createPicTag(QImage(), CANTATA_SYS_ICONS_DIR+QLatin1String("stream.png"));