mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Add QSet for faster lookups
This commit is contained in:
parent
0fdd4f67fe
commit
d192539914
1 changed files with 1 additions and 1 deletions
|
|
@ -145,9 +145,9 @@ void CardDatabaseModel::cardRemoved(CardInfoPtr card)
|
|||
|
||||
beginRemoveRows(QModelIndex(), row, row);
|
||||
disconnect(card.data(), nullptr, this, nullptr);
|
||||
cardListSet.remove(card);
|
||||
card.clear();
|
||||
cardList.removeAt(row);
|
||||
cardListSet.insert(card);
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue