mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-29 01:06:27 -05:00
Make Entry::endUpdate() return whether the entry has been modified.
This commit is contained in:
parent
c78822f6e6
commit
61ce733c6f
@ -508,7 +508,7 @@ void Entry::beginUpdate()
|
||||
m_modifiedSinceBegin = false;
|
||||
}
|
||||
|
||||
void Entry::endUpdate()
|
||||
bool Entry::endUpdate()
|
||||
{
|
||||
Q_ASSERT(m_tmpHistoryItem);
|
||||
if (m_modifiedSinceBegin) {
|
||||
@ -521,6 +521,8 @@ void Entry::endUpdate()
|
||||
}
|
||||
|
||||
m_tmpHistoryItem = nullptr;
|
||||
|
||||
return m_modifiedSinceBegin;
|
||||
}
|
||||
|
||||
void Entry::updateModifiedSinceBegin()
|
||||
|
@ -133,7 +133,7 @@ public:
|
||||
* if the entry has been changed.
|
||||
*/
|
||||
void beginUpdate();
|
||||
void endUpdate();
|
||||
bool endUpdate();
|
||||
|
||||
Group* group();
|
||||
const Group* group() const;
|
||||
|
Loading…
Reference in New Issue
Block a user