Better handle the TK set used for tokens

Let oracle add a basic TK set in cards.xml
Unify all the code previously using the string literal “TK”
This commit is contained in:
Fabio Bas 2014-11-19 19:44:54 +01:00
parent 8542d875d3
commit ac43fa23b9
4 changed files with 9 additions and 2 deletions

View file

@ -146,7 +146,7 @@ void DlgEditTokens::actAddToken()
return;
CardInfo *card = new CardInfo(cardDatabaseModel->getDatabase(), name, true);
card->addToSet(cardDatabaseModel->getDatabase()->getSet("TK"));
card->addToSet(cardDatabaseModel->getDatabase()->getSet(CardDatabase::TOKENS_SETNAME));
card->setCardType("Token");
cardDatabaseModel->getDatabase()->addCard(card);
}