From 264a171bacb2c1a5d1ac5e34aeead7df3f865a6c Mon Sep 17 00:00:00 2001 From: RickyRister Date: Wed, 19 Feb 2025 00:11:18 -0800 Subject: [PATCH] Mark deck as modified when banner card is changed --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index 174389c00..39f9417fb 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -102,6 +102,7 @@ void TabDeckEditor::createDeckDock() commentsEdit->setObjectName("commentsEdit"); commentsLabel->setBuddy(commentsEdit); connect(commentsEdit, SIGNAL(textChanged()), this, SLOT(updateComments())); + bannerCardLabel = new QLabel(); bannerCardLabel->setObjectName("bannerCardLabel"); bannerCardLabel->setText(tr("Banner Card")); @@ -112,6 +113,8 @@ 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());