From f9e4503f24a172792cb76960c13448cba004fbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Fri, 13 Jun 2025 04:23:03 +0200 Subject: [PATCH] Modified signals. --- .../ui/widgets/deck_editor/deck_editor_deck_dock_widget.cpp | 3 +++ 1 file changed, 3 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 0cbeb2b50..03ad65e4f 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 @@ -245,6 +245,7 @@ void DeckEditorDeckDockWidget::updateCard(const QModelIndex /*¤t*/, const void DeckEditorDeckDockWidget::updateName(const QString &name) { deckModel->getDeckList()->setName(name); + deckEditor->setModified(name.isEmpty()); emit nameChanged(); emit deckModified(); } @@ -252,6 +253,7 @@ void DeckEditorDeckDockWidget::updateName(const QString &name) void DeckEditorDeckDockWidget::updateComments() { deckModel->getDeckList()->setComments(commentsEdit->toPlainText()); + deckEditor->setModified(commentsEdit->toPlainText().isEmpty()); emit commentsChanged(); emit deckModified(); } @@ -333,6 +335,7 @@ void DeckEditorDeckDockWidget::setBannerCard(int /* changedIndex */) { auto cardAndId = bannerCardComboBox->currentData().value>(); deckModel->getDeckList()->setBannerCard(cardAndId); + deckEditor->setModified(true); emit deckModified(); }