sets.xml updated; don't try to retrieve empty picture urls

This commit is contained in:
Max-Wilhelm Bruker 2011-11-12 00:52:04 +01:00
parent 632e9bbff3
commit 7dc2563390
2 changed files with 21 additions and 7 deletions

View file

@ -141,9 +141,11 @@ void PictureLoader::startNextPicDownload()
QString picUrl;
if (cardBeingDownloaded.getStripped())
picUrl = cardBeingDownloaded.getCard()->getPicURLSt(cardBeingDownloaded.getSetName());
else if (cardBeingDownloaded.getHq())
else if (cardBeingDownloaded.getHq()) {
picUrl = cardBeingDownloaded.getCard()->getPicURLHq(cardBeingDownloaded.getSetName());
else
if (picUrl.isEmpty())
picUrl = cardBeingDownloaded.getCard()->getPicURL(cardBeingDownloaded.getSetName());
} else
picUrl = cardBeingDownloaded.getCard()->getPicURL(cardBeingDownloaded.getSetName());
QUrl url(picUrl);