diff --git a/cockatrice/src/tabs/abstract_tab_deck_editor.cpp b/cockatrice/src/tabs/abstract_tab_deck_editor.cpp index fdead20c3..3bd29b577 100644 --- a/cockatrice/src/tabs/abstract_tab_deck_editor.cpp +++ b/cockatrice/src/tabs/abstract_tab_deck_editor.cpp @@ -186,7 +186,7 @@ void AbstractTabDeckEditor::setModified(bool _modified) bool AbstractTabDeckEditor::isBlankNewDeck() const { DeckLoader *deck = getDeckList(); - return !modified && deck->hasNotBeenLoaded(); + return !modified && deck->isBlankDeck() && deck->hasNotBeenLoaded(); } void AbstractTabDeckEditor::actNewDeck() diff --git a/common/deck_list.h b/common/deck_list.h index 87c826e09..0596b38fd 100644 --- a/common/deck_list.h +++ b/common/deck_list.h @@ -243,6 +243,11 @@ public: } ///@} + bool isBlankDeck() const + { + return name.isEmpty() && comments.isEmpty() && getCardList().isEmpty(); + } + /// @name Sideboard plans ///@{ QList getCurrentSideboardPlan();