mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Distinguish between looking up a card as a commander and a card.
This commit is contained in:
parent
276a8fa335
commit
364865487a
5 changed files with 21 additions and 9 deletions
|
|
@ -720,11 +720,11 @@ TabDeckEditor *TabSupervisor::addDeckEditorTab(const DeckLoader *deckToOpen)
|
|||
return tab;
|
||||
}
|
||||
|
||||
TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr cardToQuery)
|
||||
TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr cardToQuery, bool isCommander)
|
||||
{
|
||||
TabEdhRec *tab = new TabEdhRec(this);
|
||||
if (cardToQuery)
|
||||
tab->setCard(cardToQuery);
|
||||
tab->setCard(cardToQuery, isCommander);
|
||||
// connect(tab, &TabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
|
||||
// connect(tab, &TabDeckEditor::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
||||
myAddTab(tab);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue