mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 18:02:14 -07:00
Properly update and set the DeckEditor's CardFrame to fetch by name and UUID if a card was selected from the decklist.
This commit is contained in:
parent
4ee71e6a70
commit
9d1f0e6067
3 changed files with 10 additions and 2 deletions
|
|
@ -724,8 +724,10 @@ void TabDeckEditor::updateCardInfoRight(const QModelIndex ¤t, const QModel
|
|||
{
|
||||
if (!current.isValid())
|
||||
return;
|
||||
if (!current.model()->hasChildren(current.sibling(current.row(), 0)))
|
||||
cardInfo->setCard(current.sibling(current.row(), 1).data().toString());
|
||||
if (!current.model()->hasChildren(current.sibling(current.row(), 0))) {
|
||||
cardInfo->setCard(current.sibling(current.row(), 1).data().toString(),
|
||||
current.sibling(current.row(), 2).data().toString());
|
||||
}
|
||||
}
|
||||
|
||||
void TabDeckEditor::updateSearch(const QString &search)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue