mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-17 14:00:36 -04:00
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.
This commit is contained in:
parent
fd7daf4c89
commit
c538f0b907
10 changed files with 66 additions and 74 deletions
|
@ -848,9 +848,14 @@ void Database::setEmitModified(bool value)
|
|||
m_emitModified = value;
|
||||
}
|
||||
|
||||
bool Database::isModified(bool includeNonDataChanges) const
|
||||
bool Database::isModified() const
|
||||
{
|
||||
return m_modified || (includeNonDataChanges && m_hasNonDataChange);
|
||||
return m_modified;
|
||||
}
|
||||
|
||||
bool Database::hasNonDataChanges() const
|
||||
{
|
||||
return m_hasNonDataChange;
|
||||
}
|
||||
|
||||
void Database::markAsModified()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue