This commit is contained in:
Lukas Brübach 2025-03-06 11:32:59 +01:00
parent f7f63a2c57
commit aeda59f251

View file

@ -793,7 +793,7 @@ TabDeckEditorVisual *TabSupervisor::addVisualDeckEditorTab(const DeckLoader *dec
{
auto *tab = new TabDeckEditorVisual(this);
if (deckToOpen)
tab->setDeck(new DeckLoader(*deckToOpen));
tab->openDeck(new DeckLoader(*deckToOpen));
connect(tab, &AbstractTabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
connect(tab, &AbstractTabDeckEditor::openDeckEditor, this, &TabSupervisor::addVisualDeckEditorTab);
myAddTab(tab);