More style changes

This commit is contained in:
Mark Furneaux 2014-05-27 20:18:24 -04:00
parent 94b391e0c9
commit b2bd7828c4
1 changed files with 1 additions and 2 deletions

View File

@ -468,7 +468,6 @@ QVariant LibraryModel::AlbumIcon(const QModelIndex& index) {
if (cache) { if (cache) {
QImage cached_pixmap; QImage cached_pixmap;
if (cached_pixmap.load(cache.get(), "XPM")) { if (cached_pixmap.load(cache.get(), "XPM")) {
qLog(Debug) << "Loading pixmap from disk...";
QPixmapCache::insert(cache_key, QPixmap::fromImage(cached_pixmap)); QPixmapCache::insert(cache_key, QPixmap::fromImage(cached_pixmap));
return QPixmap::fromImage(cached_pixmap); return QPixmap::fromImage(cached_pixmap);
} }
@ -509,7 +508,7 @@ void LibraryModel::AlbumArtLoaded(quint64 id, const QImage& image) {
} }
// if not already in the disk cache // if not already in the disk cache
if (icon_cache_->data(QUrl(cache_key)) == 0) { if (!icon_cache_->data(QUrl(cache_key))) {
QNetworkCacheMetaData item_metadata; QNetworkCacheMetaData item_metadata;
item_metadata.setSaveToDisk(true); item_metadata.setSaveToDisk(true);
item_metadata.setUrl(QUrl(cache_key)); item_metadata.setUrl(QUrl(cache_key));