From b68e659045ae0285ddbd0c2838d12e4db4c429e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sat, 1 Mar 2025 12:18:56 +0100 Subject: [PATCH] Fallback to regular card name search in case the providerId one fails for the database display widget. --- .../deck_editor/deck_editor_database_display_widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_database_display_widget.cpp b/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_database_display_widget.cpp index b21062245..94c6609be 100644 --- a/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_database_display_widget.cpp +++ b/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_database_display_widget.cpp @@ -141,6 +141,9 @@ void DeckEditorDatabaseDisplayWidget::updateCard(const QModelIndex ¤t, con if (!current.model()->hasChildren(current.sibling(current.row(), 0))) { CardInfoPtr card = CardDatabaseManager::getInstance()->getCardByNameAndProviderId(cardName, cardProviderID); + if (!card) { + card = CardDatabaseManager::getInstance()->getCard(cardName); + } emit cardChanged(card); } }