Fix cards without providerIds being counted for all cards.

This commit is contained in:
Lukas Brübach 2024-12-01 12:49:11 +01:00 committed by ZeldaZach
parent b7e17be133
commit 70c2bd6377
No known key found for this signature in database

View file

@ -153,6 +153,10 @@ int CardAmountWidget::countCardsInZone(const QString &deckZone)
{
int count = 0;
if (setInfoForCard.getProperty("uuid").isEmpty()) {
return 0; // Cards without uuids/providerIds CANNOT match another card, they are undefined for us.
}
if (!deckModel) {
return -1;
}