also reset tags

This commit is contained in:
RickyRister 2025-03-15 03:21:45 -07:00
parent 246168936d
commit 7f9cf02d1e

View file

@ -314,6 +314,9 @@ DeckLoader *DeckEditorDeckDockWidget::getDeckList()
return deckModel->getDeckList(); return deckModel->getDeckList();
} }
/**
* Resets the tab to the state for a blank new tab.
*/
void DeckEditorDeckDockWidget::cleanDeck() void DeckEditorDeckDockWidget::cleanDeck()
{ {
deckModel->cleanList(); deckModel->cleanList();
@ -321,6 +324,7 @@ void DeckEditorDeckDockWidget::cleanDeck()
commentsEdit->setText(QString()); commentsEdit->setText(QString());
hashLabel->setText(QString()); hashLabel->setText(QString());
updateBannerCardComboBox(); updateBannerCardComboBox();
deckTagsDisplayWidget->connectDeckList(deckModel->getDeckList());
} }
void DeckEditorDeckDockWidget::recursiveExpand(const QModelIndex &index) void DeckEditorDeckDockWidget::recursiveExpand(const QModelIndex &index)