[DeckListModel] Consolidate methods and signals for card change (#6466)

This commit is contained in:
RickyRister 2026-01-05 09:28:59 -08:00 committed by GitHub
parent 85c9d8a9ff
commit 192dac0396
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 86 additions and 6 deletions

View file

@ -152,7 +152,7 @@ static bool swapPrinting(DeckListModel *model, const QString &modifiedSet, const
return false;
}
int amount = model->data(idx.siblingAtColumn(DeckListModelColumns::CARD_AMOUNT), Qt::DisplayRole).toInt();
model->removeRow(idx.row(), idx.parent());
model->removeCardAtIndex(idx);
CardInfoPtr cardInfo = CardDatabaseManager::query()->getCardInfo(cardName);
PrintingInfo printing = CardDatabaseManager::query()->getSpecificPrinting(cardName, modifiedSet, "");
for (int i = 0; i < amount; i++) {