mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
[DeckDockWidget] Fix swap not auto-expanding tree (#6443)
This commit is contained in:
parent
be17ee1902
commit
01e8e4d589
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ bool DeckEditorDeckDockWidget::swapCard(const QModelIndex ¤tIndex)
|
|||
QModelIndex newCardIndex = card ? deckModel->addCard(card, otherZoneName)
|
||||
// Third argument (true) says create the card no matter what, even if not in DB
|
||||
: deckModel->addPreferredPrintingCard(cardName, otherZoneName, true);
|
||||
recursiveExpand(proxy->mapToSource(newCardIndex));
|
||||
recursiveExpand(proxy->mapFromSource(newCardIndex));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue