diff options
author | Jonathan White <support@dmapps.us> | 2019-01-25 15:20:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-25 15:20:39 +0300 |
commit | c74664097b010b1c463011ec6ea07fd5c392a178 (patch) | |
tree | e8c08ae8b79025dfcaed3747d357644898907c65 /src/gui/DatabaseWidget.h | |
parent | d66299260c9cb63b89c5b0513cae505d6789c3ac (diff) |
Fix crash when canceling save of new database (#2601)
* Fix crash when canceling save of new database
* Standardize use of DatabaseWidget::save() function
* Close new database tabs that are "discarded"
* Fixes #2604. autoSaveOnExit setting
* Re-implement autosave functionality
Diffstat (limited to 'src/gui/DatabaseWidget.h')
-rw-r--r-- | src/gui/DatabaseWidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/DatabaseWidget.h b/src/gui/DatabaseWidget.h index 712976105..1eadc9aa3 100644 --- a/src/gui/DatabaseWidget.h +++ b/src/gui/DatabaseWidget.h @@ -209,6 +209,7 @@ private slots: void emitEntryContextMenuRequested(const QPoint& pos); void onEntryChanged(Entry* entry); void onGroupChanged(Group* group); + void onDatabaseModified(); void connectDatabaseSignals(); void loadDatabase(bool accepted); void unlockDatabase(bool accepted); @@ -257,6 +258,7 @@ private: // Autoreload QPointer<DelayingFileWatcher> m_fileWatcher; + bool m_blockAutoSave; }; #endif // KEEPASSX_DATABASEWIDGET_H |