From e7585271fbd6610c1014821cba06497adc3af6cc Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:28:58 +0100 Subject: [PATCH] The printingSelector should set the deckEditor modified flag on adding/removing cards. (#5321) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lukas BrĂ¼bach --- .../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); } /**