Fallback to regular card name search in case the providerId one fails for the database display widget. (#5673)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-03-01 15:22:00 +01:00 committed by GitHub
parent 2a9599eed8
commit ec452aabe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,6 +141,9 @@ void DeckEditorDatabaseDisplayWidget::updateCard(const QModelIndex &current, 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);
}
}