diff --git a/cockatrice/src/dlg_create_token.cpp b/cockatrice/src/dlg_create_token.cpp index 290cca53..e0a3d4dc 100644 --- a/cockatrice/src/dlg_create_token.cpp +++ b/cockatrice/src/dlg_create_token.cpp @@ -151,7 +151,7 @@ void DlgCreateToken::tokenSelectionChanged(const QModelIndex ¤t, const QMo cardInfo = cardDatabaseModel->getCard(realIndex.row()); } - if (!cardInfo) { + if (cardInfo) { updateSearchFieldWithoutUpdatingFilter(cardInfo->getName()); const QChar cardColor = cardInfo->getColorChar(); colorEdit->setCurrentIndex(colorEdit->findData(cardColor, Qt::UserRole, Qt::MatchFixedString));