mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
Bulk editing dialog functionality.
This commit is contained in:
parent
f354685917
commit
1ddf5297d5
5 changed files with 248 additions and 193 deletions
|
|
@ -161,13 +161,16 @@ AbstractDecklistNode *InnerDecklistNode::findCardChildByNameProviderIdAndNumber(
|
|||
const QString &_cardNumber)
|
||||
{
|
||||
for (const auto &i : *this) {
|
||||
if (i != nullptr && i->getName() == _name) {
|
||||
if (i->getCardCollectorNumber() == _cardNumber) {
|
||||
if (i->getCardProviderId() == _providerId) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
if (!i || i->getName() != _name) {
|
||||
continue;
|
||||
}
|
||||
if (_cardNumber != "" && i->getCardCollectorNumber() != _cardNumber) {
|
||||
continue;
|
||||
}
|
||||
if (_providerId != "" && i->getCardProviderId() != _providerId) {
|
||||
continue;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue