Disable saving of decks when the deck is empty (#3384)

* Disable saving of decks when the deck is empty

* Replace tabs with spaces to conform with coding conventions

* Remove whitespace at end of line to satisfy the CI robot overlords

* Improve logic to check if deck is empty, fix functionality when a deck is loaded

* Fix code style issues

* Disable more menus when the deck is empty

* Streamline code for disabling save menus when the deck is empty

* Fix save-disabling when loading a deck from the clipboard

* Enable saving deck directly after loading deck
This commit is contained in:
Lee Tran 2018-09-21 09:46:31 -05:00 committed by Zach H
parent 70005a6f1d
commit eb4b1e74f1
2 changed files with 28 additions and 2 deletions

View file

@ -95,6 +95,7 @@ private slots:
void dockFloatingTriggered();
void dockTopLevelChanged(bool topLevel);
void saveDbHeaderState();
void setSaveStatus(bool newStatus);
private:
CardInfoPtr currentCardInfo() const;