projects
/
someplayer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aa3fe4
)
Workaround for tracks without album.
author
Nikolay Tischenko
<niktischenko@gmail.com>
Fri, 11 Mar 2011 19:09:34 +0000
(
01:09
+0600)
committer
Nikolay Tischenko
<niktischenko@gmail.com>
Fri, 11 Mar 2011 19:09:34 +0000
(
01:09
+0600)
It disables using one cover for all tracks withot album tag
in the same directory
src/track.cpp
patch
|
blob
|
history
diff --git
a/src/track.cpp
b/src/track.cpp
index
ac7a877
..
294be55
100644
(file)
--- a/
src/track.cpp
+++ b/
src/track.cpp
@@
-107,6
+107,9
@@
bool Track::operator < (const Track &track) const {
QString Track::mediaArtLocal() {
QString album = _metadata.album();
+ if (album == _UNKNOWN_ALBUM_) {
+ return QString("no_mediaartlocal");
+ }
QRegExp rsb("\\[.*\\]");
QRegExp rfb("{.*}");
QRegExp rrb("\\(.*\\)");