From 963ff64cb613e043b0cdbacb426bbfafedefaa0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Mon, 11 Nov 2024 16:36:13 +0100 Subject: [PATCH] Correct some calls to default to preferred printing. --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index 79f82ebc2..762552d75 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -1014,7 +1014,7 @@ void TabDeckEditor::addCardHelper(QString zoneName) if (info->getIsToken()) zoneName = DECK_ZONE_TOKENS; - QModelIndex newCardIndex = deckModel->addCard(info->getName(), zoneName); + QModelIndex newCardIndex = deckModel->addPreferredPrintingCard(info->getName(), zoneName, false); recursiveExpand(newCardIndex); deckView->setCurrentIndex(newCardIndex); setModified(true); @@ -1037,7 +1037,7 @@ void TabDeckEditor::actSwapCard() const QString otherZoneName = zoneName == DECK_ZONE_MAIN ? DECK_ZONE_SIDE : DECK_ZONE_MAIN; // Third argument (true) says create the card no mater what, even if not in DB - QModelIndex newCardIndex = deckModel->addCard(cardName, otherZoneName, true); + QModelIndex newCardIndex = deckModel->addPreferredPrintingCard(cardName, otherZoneName, true); recursiveExpand(newCardIndex); setModified(true);