mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-19 00:06:01 -08:00
fixed crash that occurs when reloading the card database while deck editor or game is running
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user