fixed crash that occurs when reloading the card database while deck editor or game is running

This commit is contained in:
Max-Wilhelm Bruker
2011-02-28 18:20:27 +01:00
parent b0656ffcea
commit 7a7b686e67
8 changed files with 31 additions and 3 deletions

View File

@@ -659,6 +659,8 @@ bool CardDatabase::loadCardDatabase(const QString &path)
allSets.sortByKey();
for (int i = 0; i < allSets.size(); ++i)
allSets[i]->setSortKey(i);
emit cardListChanged();
}
return loadSuccess;