add an isEmpty method to printing info

no reason, I just find it easier to understand
This commit is contained in:
ebbit1q 2026-04-12 03:59:42 +02:00
parent 2e10b2f5d5
commit b9836074f3
3 changed files with 13 additions and 3 deletions

View file

@ -133,7 +133,7 @@ ExactCard CardDatabaseQuerier::getRandomCard() const
ExactCard CardDatabaseQuerier::getCardFromSameSet(const QString &cardName, const PrintingInfo &otherPrinting) const
{
// The source card does not have a printing defined, which means we can't get a card from the same set.
if (otherPrinting == PrintingInfo()) {
if (otherPrinting.isEmpty()) {
return getCard({cardName});
}
@ -360,4 +360,4 @@ QMap<QString, int> CardDatabaseQuerier::getAllFormatsWithCount() const
}
return formatCounts;
}
}