Allow empty collectorNumber. (#5853)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-04-19 01:26:17 +02:00 committed by GitHub
parent 1e01c684c4
commit 0c02d15e0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,9 +386,10 @@ CardInfoPerSet CardDatabase::getSpecificSetForCard(const QString &cardName,
for (const auto &cardInfoPerSetList : setMap) {
for (auto &cardInfoForSet : cardInfoPerSetList) {
if (cardInfoForSet.getPtr()->getShortName() == setShortName &&
cardInfoForSet.getProperty("num") == collectorNumber) {
return cardInfoForSet;
if (cardInfoForSet.getPtr()->getShortName() == setShortName) {
if (cardInfoForSet.getProperty("num") == collectorNumber || collectorNumber.isEmpty()) {
return cardInfoForSet;
}
}
}
}