From c9525af624205526669ada41c764b893a3fd95ff Mon Sep 17 00:00:00 2001 From: Zach H Date: Mon, 5 Feb 2018 11:39:10 -0500 Subject: [PATCH] this is backwards (#3077) --- cockatrice/src/dlg_create_token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));