Use custom picUrl if picUrlHq is not defined
This commit is contained in:
parent
aa225f8df7
commit
9e12c5b2d4
1 changed files with 10 additions and 4 deletions
|
@ -153,12 +153,18 @@ QString PictureLoader::getPicUrl(CardInfo *card)
|
||||||
{
|
{
|
||||||
if (!picDownload) return 0;
|
if (!picDownload) return 0;
|
||||||
|
|
||||||
// first check if a custom card url exists in cards.xml
|
|
||||||
CardSet *set = card->getPreferredSet();
|
CardSet *set = card->getPreferredSet();
|
||||||
QString picUrl = picDownloadHq ?
|
QString picUrl = QString("");
|
||||||
card->getCustomPicURLHq(set->getShortName()) :
|
// first check if Hq is enabled and a custom Hq card url exists in cards.xml
|
||||||
card->getCustomPicURL(set->getShortName());
|
if(picDownloadHq)
|
||||||
|
{
|
||||||
|
picUrl = card->getCustomPicURLHq(set->getShortName());
|
||||||
|
if (!picUrl.isEmpty())
|
||||||
|
return picUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
// then, test for a custom, non-Hq card url in cards.xml
|
||||||
|
picUrl = card->getCustomPicURL(set->getShortName());
|
||||||
if (!picUrl.isEmpty())
|
if (!picUrl.isEmpty())
|
||||||
return picUrl;
|
return picUrl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue