From 7f9cf02d1e2f45a3737e41843c74caf7f3be16b9 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sat, 15 Mar 2025 03:21:45 -0700 Subject: [PATCH] also reset tags --- .../ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp b/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp index 6ac3f4fb9..d24182167 100644 --- a/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp +++ b/cockatrice/src/client/ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp @@ -314,6 +314,9 @@ DeckLoader *DeckEditorDeckDockWidget::getDeckList() return deckModel->getDeckList(); } +/** + * Resets the tab to the state for a blank new tab. + */ void DeckEditorDeckDockWidget::cleanDeck() { deckModel->cleanList(); @@ -321,6 +324,7 @@ void DeckEditorDeckDockWidget::cleanDeck() commentsEdit->setText(QString()); hashLabel->setText(QString()); updateBannerCardComboBox(); + deckTagsDisplayWidget->connectDeckList(deckModel->getDeckList()); } void DeckEditorDeckDockWidget::recursiveExpand(const QModelIndex &index)