mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 22:42:34 -04:00
Automatic reload of a database when it get modified
When the database if modified by an other instance of KeePassX, KeePassX detect it and reload automatically the database.
This commit is contained in:
parent
e263c475c9
commit
7a8d4577f1
7 changed files with 162 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "core/Global.h"
|
||||
|
||||
#include "gui/entry/EntryModel.h"
|
||||
#include "core/FileSystemWatcher.h"
|
||||
|
||||
class ChangeMasterKeyWidget;
|
||||
class DatabaseOpenWidget;
|
||||
|
@ -118,6 +119,7 @@ private Q_SLOTS:
|
|||
void switchToGroupEdit(Group* entry, bool create);
|
||||
void updateMasterKey(bool accepted);
|
||||
void openDatabase(bool accepted);
|
||||
void databaseModifedExternally();
|
||||
void unlockDatabase(bool accepted);
|
||||
void emitCurrentModeChanged();
|
||||
void clearLastGroup(Group* group);
|
||||
|
@ -152,6 +154,7 @@ private:
|
|||
QTimer* m_searchTimer;
|
||||
QWidget* widgetBeforeLock;
|
||||
QString m_filename;
|
||||
FileSystemWatcher m_file_watcher;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_DATABASEWIDGET_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue