Code Review
/
apps
/
mediaplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Merge "qml: QML wouldn't load if there isn't DBUS support builtin"
[apps/mediaplayer.git]
/
app
/
playlistwithmetadata.cpp
diff --git
a/app/playlistwithmetadata.cpp
b/app/playlistwithmetadata.cpp
index
be6d9a1
..
28bd0b2
100644
(file)
--- 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);