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

@@ -235,6 +235,10 @@ int OracleImporter::startImport()
QListIterator<SetToDownload> it(allSets);
const SetToDownload * curSet;
// add an empty set for tokens
CardSet *tokenSet = new CardSet(TOKENS_SETNAME, tr("Dummy set containing tokens"), "tokens");
sets.insert(TOKENS_SETNAME, tokenSet);
while (it.hasNext())
{
curSet = & it.next();