Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement autoreload of database file #93

Merged
merged 8 commits into from
Nov 25, 2016
Merged

Conversation

droidmonkey
Copy link
Member

@droidmonkey droidmonkey commented Nov 11, 2016

Description

Provides a simple implementation for autoreload of the database file if it is changed in the underlying file system. Includes a setting to explicitly ask to reload.

Original code written by "Sebastien Fricker" in 2014.

TODO:

  • Merge an unsaved modified database into the autoreload database
  • Write unit tests

Motivation and Context

Long requested feature of KeePassX, enables seamless use of cloud storage and sync tools.

How Has This Been Tested?

Manually

Types of changes

  • ➖ Bug fix (non-breaking change which fixes an issue)
  • ✅ New feature (non-breaking change which adds functionality)
  • ➖ Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]
  • ➖ My change requires a change to the documentation.
  • ➖ I have updated the documentation accordingly.
  • ❎ I have added tests to cover my changes.

Sebastien Fricker and others added 6 commits May 3, 2014 16:59
@droidmonkey
Copy link
Member Author

I completed the two tasks in the original PR, request review from the team.

#include <QLineEdit>
#include <QKeyEvent>
#include <QSplitter>
#include <QLabel>
#include <QProcess>
#include <QHeaderView>
#include <QApplication>
#include <QtDebug>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's this necessary?

@TheZ3ro TheZ3ro added this to the v2.1.0 milestone Nov 23, 2016
@droidmonkey
Copy link
Member Author

Cleaned up the code you mentioned.

Copy link
Contributor

@TheZ3ro TheZ3ro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed and tested. It works very well!

@droidmonkey droidmonkey mentioned this pull request Nov 25, 2016
* Ignore autoreload on save / save-as
* Consolidated db save code
* Corrected bug (crash) in merge entry code due to not cloning the entry
* Enhanced known modified status of database
* Implemented test cases for autoreload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants