From 525106de6f1b1593abb7135956bfdeff1debe4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Tue, 24 Dec 2024 11:50:32 +0100 Subject: [PATCH] The printingSelector should set the deckEditor modified flag on adding/removing cards. --- .../client/ui/widgets/printing_selector/card_amount_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp b/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp index 5f5ca3c5b..900f0dbd5 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp @@ -155,6 +155,7 @@ void CardAmountWidget::addPrinting(const QString &zone) setInfoForCard.getProperty("num")); deckView->setCurrentIndex(newCardIndex); deckView->setFocus(Qt::FocusReason::MouseFocusReason); + deckEditor->setModified(true); } /** @@ -236,6 +237,7 @@ void CardAmountWidget::decrementCardHelper(const QString &zone) QModelIndex idx = deckModel->findCard(rootCard->getName(), zone, setInfoForCard.getProperty("uuid"), setInfoForCard.getProperty("num")); offsetCountAtIndex(idx, -1); + deckEditor->setModified(true); } /**