Show playlist entries even if album or artist props are missing.

This commit is contained in:
Daniel Svensson 2006-08-09 21:02:48 +02:00
parent ac0ac19bf1
commit 8c151d1358

View file

@ -215,13 +215,14 @@ PlaylistList::mediainfoChanged (uint id, const Xmms::PropDict &info)
PlaylistItem *i = m_itemmap->value (id);
if (i) {
QString n;
if (info.contains ("artist") && info.contains ("album") &&
info.contains ("title")) {
n = QString::fromUtf8 (info.get<std::string> ("artist").c_str ())
+ " - " +
QString::fromUtf8 (info.get<std::string> ("album").c_str ())
+ " - " +
QString::fromUtf8 (info.get<std::string> ("title").c_str ());
if (info.contains ("title")) {
if (info.contains ("artist")) {
n = QString::fromUtf8 (info.get<std::string> ("artist").c_str ()) + " - ";
}
if (info.contains ("album")) {
n += QString::fromUtf8 (info.get<std::string> ("album").c_str ()) + " - ";
}
n += QString::fromUtf8 (info.get<std::string> ("title").c_str ());
} else if (info.contains ("channel")) {
n = QString::fromUtf8 (info.get<std::string> ("channel").c_str ())
+ " - " +