mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[VDE] Fix crash vy adding null check for card in PrintingSelector (#6500)
This commit is contained in:
parent
6340c4a6b7
commit
7c7755b61d
1 changed files with 4 additions and 0 deletions
|
|
@ -122,6 +122,10 @@ static QMap<QString, QPair<int, int>> tallyUuidCounts(const DeckListModel *model
|
|||
|
||||
void PrintingSelector::updateCardAmounts()
|
||||
{
|
||||
if (selectedCard.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto map = tallyUuidCounts(deckStateManager->getModel(), selectedCard->getName());
|
||||
emit cardAmountsChanged(map);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue