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…
Reference in a new issue