on xenial help sign in
Support nested content in Home.
commit3ac13d3332a9b08b3f6d50eb587c6abb7a172fc8 authorPawel Stolowski <pawel.stolowski@canonical.com> dateWed 9 Oct 2013, 15:21 (13 years ago) parent95db08b
1 file changed+4−1
plugins/Unity/iconutils.cpp+4−1
plugins/Unity/iconutils.cpp+4−1
@@ -100,7 +100,10 @@ QString uriToThumbnailerProviderString(QString const &uri, QString const &mimety
100100 if (isAudio) {
101101 thumbnailerUri = BASE_ALBUMART_URI;
102102 if (metadata.contains("content")) {
103− const QVariantHash contentHash = metadata["content"].toHash();
103+ QVariantHash contentHash = metadata["content"].toHash();
104+ if (contentHash.contains("content")) { // nested content in Home?
105+ contentHash = contentHash["content"].toHash();
106+ }
104107 if (contentHash.contains("album") &&
105108 contentHash.contains("artist")) {
106109 const QString album = contentHash["album"].toString();