From ca24fd6145362ce2b245d095191db282c3379cf2 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sat, 22 Feb 2025 01:59:07 -0800 Subject: [PATCH] set modified inside setBannerCard --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index 39f9417fb..5c700dfd5 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -113,8 +113,6 @@ void TabDeckEditor::createDeckDock() }); connect(bannerCardComboBox, QOverload::of(&QComboBox::currentIndexChanged), this, &TabDeckEditor::setBannerCard); - connect(bannerCardComboBox, QOverload::of(&QComboBox::currentIndexChanged), this, - [this] { setModified(true); }); deckTagsDisplayWidget = new DeckPreviewDeckTagsDisplayWidget(this, deckModel->getDeckList()); @@ -914,6 +912,7 @@ void TabDeckEditor::setBannerCard(int /* changedIndex */) QVariantMap itemData = bannerCardComboBox->itemData(bannerCardComboBox->currentIndex()).toMap(); deckModel->getDeckList()->setBannerCard( QPair(itemData["name"].toString(), itemData["uuid"].toString())); + setModified(true); } void TabDeckEditor::updateCardInfo(CardInfoPtr _card)