mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -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);
|
beginRemoveRows(QModelIndex(), row, row);
|
||||||
disconnect(card.data(), nullptr, this, nullptr);
|
disconnect(card.data(), nullptr, this, nullptr);
|
||||||
|
cardListSet.remove(card);
|
||||||
card.clear();
|
card.clear();
|
||||||
cardList.removeAt(row);
|
cardList.removeAt(row);
|
||||||
cardListSet.insert(card);
|
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue