mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 09:03:54 -07:00
[DeckListModel] Consolidate methods and signals for card change (#6466)
This commit is contained in:
parent
85c9d8a9ff
commit
192dac0396
7 changed files with 86 additions and 6 deletions
|
|
@ -152,7 +152,7 @@ static QModelIndex addAndReplacePrintings(DeckListModel *model,
|
|||
// Check if a card without a providerId already exists in the deckModel and replace it, if so.
|
||||
if (existing.isValid() && existing != newCardIndex && replaceProviderless) {
|
||||
model->offsetCountAtIndex(newCardIndex, extraCopies);
|
||||
model->removeRow(existing.row(), existing.parent());
|
||||
model->removeCardAtIndex(existing);
|
||||
}
|
||||
|
||||
// Set Index and Focus as if the user had just clicked the new card and modify the deckEditor saveState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue