diff options
author | Jonathan White <support@dmapps.us> | 2020-08-02 01:00:47 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-08-08 22:40:00 +0300 |
commit | c538f0b907aaae5b8033b9bd370e7d9ea58488de (patch) | |
tree | acf7c329ee25c1adfee1d56c4cacd1e75f57372f /src/gui/DatabaseWidget.h | |
parent | fd7daf4c896ab59dd4c65c82a6b29920378b8a31 (diff) |
Fixup saving non-data changes on database lock
* Fix #5107
* Change setting for non-data changes to Auto save on database lock (or not) instead of marking modified.
* When enabled, database will be auto-saved if there are only non-data changes, but will not prompt the user if saving has failed.
* When disabled, database will not auto-save if there are only non-data changes (same behavior as 2.5 and below) and will not mark the database dirty.
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 2564977dc..ae660bf88 100644 --- a/src/gui/DatabaseWidget.h +++ b/src/gui/DatabaseWidget.h @@ -260,6 +260,7 @@ private: void openDatabaseFromEntry(const Entry* entry, bool inBackground = true); bool confirmDeleteEntries(QList<Entry*> entries, bool permanent); void performIconDownloads(const QList<Entry*>& entries, bool force = false); + bool performSave(QString& errorMessage, const QString& fileName = {}); Entry* currentSelectedEntry(); QSharedPointer<Database> m_db; |