From ec452aabe2a6961ecbcb4da04be7f3c636aed5ed Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Sat, 1 Mar 2025 15:22:00 +0100 Subject: [PATCH] Fallback to regular card name search in case the providerId one fails for the database display widget. (#5673) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lukas BrĂ¼bach --- .../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); } }