mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
[DeckEditor] Properly check if deck is blank.
Took 20 minutes
This commit is contained in:
parent
14991e1f9e
commit
eb5ccd1a42
2 changed files with 6 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ void AbstractTabDeckEditor::setModified(bool _modified)
|
|||
bool AbstractTabDeckEditor::isBlankNewDeck() const
|
||||
{
|
||||
DeckLoader *deck = getDeckList();
|
||||
return !modified && deck->hasNotBeenLoaded();
|
||||
return !modified && deck->isUnmodified() && deck->hasNotBeenLoaded();
|
||||
}
|
||||
|
||||
void AbstractTabDeckEditor::actNewDeck()
|
||||
|
|
|
|||
|
|
@ -243,6 +243,11 @@ public:
|
|||
}
|
||||
///@}
|
||||
|
||||
bool isUnmodified() const
|
||||
{
|
||||
return name.isEmpty() && comments.isEmpty() && getCardList().size() == 0;
|
||||
}
|
||||
|
||||
/// @name Sideboard plans
|
||||
///@{
|
||||
QList<MoveCard_ToZone> getCurrentSideboardPlan();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue