When displaying year, get the year from the album - as this maybe different per track of album (if the album is a compilation)

This commit is contained in:
craig.p.drummond@gmail.com
2012-08-21 17:55:30 +00:00
parent 4e92b257d8
commit 6274223406

View File

@@ -2312,8 +2312,9 @@ void MainWindow::updateCurrentSong(const Song &song)
} else {
QString album=current.album;
if (current.year>0) {
album+=QString(" (%1)").arg(current.year);
quint16 year=Song::albumYear(current);
if (year>0) {
album+=QString(" (%1)").arg(year);
}
#ifdef ENABLE_KDE_SUPPORT
artistLabel->setText(i18nc("artist - album", "%1 - %2", current.artist, album));