Bulk editing dialog.

This commit is contained in:
Lukas Brübach 2025-02-07 06:26:58 +01:00
parent c99afe7956
commit f354685917
6 changed files with 541 additions and 4 deletions

View file

@ -386,9 +386,15 @@ 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 (collectorNumber != nullptr) {
if (cardInfoForSet.getPtr()->getShortName() == setShortName &&
cardInfoForSet.getProperty("num") == collectorNumber) {
return cardInfoForSet;
}
} else {
if (cardInfoForSet.getPtr()->getShortName() == setShortName) {
return cardInfoForSet;
}
}
}
}