diff options
author | Andrew Meyer <apmeyer@bgsu.edu> | 2020-05-09 06:48:03 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-05-16 18:00:27 +0300 |
commit | 45848c3f611b88015c8227be197baac07a284b3d (patch) | |
tree | 04f2706254702c443a01cd09308acfbd1473338f /src/gui/DatabaseWidget.h | |
parent | 2237cf0188af38898e1492f5d7ce2c0f087c8f35 (diff) |
Implement 'Save Database Backup' option
Add an option in the 'Database' menu to save a backup of the current database.
Add unit test for saving database copy
* Open a test database, mark it as modified, and save a copy
* Fail if the copy is not a valid database
* Fail if the original database is saved
* Fail if the original database is no longer marked as modified
Diffstat (limited to 'src/gui/DatabaseWidget.h')
-rw-r--r-- | src/gui/DatabaseWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/DatabaseWidget.h b/src/gui/DatabaseWidget.h index 0d0afe8f1..3f25a4361 100644 --- a/src/gui/DatabaseWidget.h +++ b/src/gui/DatabaseWidget.h @@ -158,6 +158,7 @@ public slots: bool lock(); bool save(); bool saveAs(); + bool saveBackup(); void replaceDatabase(QSharedPointer<Database> db); void createEntry(); |