mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed crash that occurs when reloading the card database while deck editor or game is running
This commit is contained in:
parent
b0656ffcea
commit
7a7b686e67
8 changed files with 31 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue