Fix crashes trying to load the picture of a card with no <set>

This commit is contained in:
Fabio Bas 2014-08-07 22:28:08 +02:00
parent 0de0658acd
commit 3bce98e3a9
2 changed files with 35 additions and 13 deletions

View file

@ -55,7 +55,7 @@ public:
PictureToLoad(CardInfo *_card = 0, bool _stripped = false, bool _hq = true);
CardInfo *getCard() const { return card; }
bool getStripped() const { return stripped; }
QString getSetName() const { return sortedSets[setIndex]->getCorrectedShortName(); }
QString getSetName() const;
bool nextSet();
bool getHq() const { return hq; }
void setHq(bool _hq) { hq = _hq; }