From 77ccee362854decfbd0cce02746a894e5f13d472 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 17 Mar 2019 07:47:45 +0000 Subject: changed cover image priority git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8763 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/metadatamanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/qmmp/metadatamanager.cpp b/src/qmmp/metadatamanager.cpp index e0a07de45..11ca5c7aa 100644 --- a/src/qmmp/metadatamanager.cpp +++ b/src/qmmp/metadatamanager.cpp @@ -273,20 +273,20 @@ MetaDataManager::CoverCacheItem *MetaDataManager::createCoverCacheItem(const QSt { CoverCacheItem *item = new CoverCacheItem; item->url = url; - MetaDataModel *model = createMetaDataModel(url, true); - if(model) + if(!url.contains("://") && m_settings->useCoverFiles()) + item->coverPath = findCoverFile(url); + + if(item->coverPath.isEmpty()) { - item->coverPath = model->coverPath(); - item->coverPixmap = model->cover(); - delete model; + MetaDataModel *model = createMetaDataModel(url, true); + if(model) + { + item->coverPath = model->coverPath(); + item->coverPixmap = model->cover(); + delete model; + } } - if(!m_settings->useCoverFiles()) - return item; - - if(!url.contains("://") && item->coverPath.isEmpty()) - item->coverPath = findCoverFile(url); - if(!item->coverPath.isEmpty() && item->coverPixmap.isNull()) item->coverPixmap = QPixmap(item->coverPath); -- cgit v1.2.3-13-gbd6f