mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 20:13:56 -07:00
this is backwards (#3077)
This commit is contained in:
parent
aba47719b2
commit
c9525af624
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ void DlgCreateToken::tokenSelectionChanged(const QModelIndex ¤t, const QMo
|
||||||
cardInfo = cardDatabaseModel->getCard(realIndex.row());
|
cardInfo = cardDatabaseModel->getCard(realIndex.row());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cardInfo) {
|
if (cardInfo) {
|
||||||
updateSearchFieldWithoutUpdatingFilter(cardInfo->getName());
|
updateSearchFieldWithoutUpdatingFilter(cardInfo->getName());
|
||||||
const QChar cardColor = cardInfo->getColorChar();
|
const QChar cardColor = cardInfo->getColorChar();
|
||||||
colorEdit->setCurrentIndex(colorEdit->findData(cardColor, Qt::UserRole, Qt::MatchFixedString));
|
colorEdit->setCurrentIndex(colorEdit->findData(cardColor, Qt::UserRole, Qt::MatchFixedString));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue