this is backwards (#3077)

This commit is contained in:
Zach H 2018-02-05 11:39:10 -05:00 committed by GitHub
parent aba47719b2
commit c9525af624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ void DlgCreateToken::tokenSelectionChanged(const QModelIndex &current, 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));