summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/playlistwithmetadata.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/playlistwithmetadata.cpp b/app/playlistwithmetadata.cpp
index be6d9a1..28bd0b2 100644
--- a/app/playlistwithmetadata.cpp
+++ b/app/playlistwithmetadata.cpp
@@ -160,6 +160,8 @@ QVariant PlaylistWithMetadata::data(const QModelIndex &index, int role) const
switch (role) {
case TitleRole:
ret = d->title.value(url);
+ if (ret.toString().isEmpty())
+ ret = QVariant(url.fileName());
break;
case ArtistRole:
ret = d->artist.value(url);