Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2019-04-03 17:23:18 +0300
committerJonathan White <support@dmapps.us>2019-04-07 19:12:43 +0300
commit3b0b5d85e962b57b14507f9b07ee187aa35ecaf4 (patch)
treead83d675afecdf56c6cd41d3a9d916405b5e1240 /src/gui/DatabaseWidget.h
parentec829315730e07e5db42358cfa36a190eaea55c4 (diff)
Correct behaviors when saving database fails
* Mark database dirty if saving fails * Restore database file from backup if unsafe save fails between deleting database file and copying temporary file into place * Improve error message display for opening and saving database files * Do not automatically retry saving after failure. This prevents deletion of the backup database file and improves user awareness of issues.
Diffstat (limited to 'src/gui/DatabaseWidget.h')
-rw-r--r--src/gui/DatabaseWidget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/DatabaseWidget.h b/src/gui/DatabaseWidget.h
index 9c2788995..11b2f710c 100644
--- a/src/gui/DatabaseWidget.h
+++ b/src/gui/DatabaseWidget.h
@@ -144,7 +144,7 @@ signals:
public slots:
bool lock();
- bool save(int attempt = 0);
+ bool save();
bool saveAs();
void replaceDatabase(QSharedPointer<Database> db);
@@ -255,6 +255,8 @@ private:
QUuid m_groupBeforeLock;
QUuid m_entryBeforeLock;
+ int m_saveAttempts;
+
// Search state
EntrySearcher* m_EntrySearcher;
QString m_lastSearchText;