mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-31 18:48:48 -04:00
Make Entry::endUpdate() return whether the entry has been modified.
This commit is contained in:
parent
c78822f6e6
commit
61ce733c6f
2 changed files with 4 additions and 2 deletions
|
@ -508,7 +508,7 @@ void Entry::beginUpdate()
|
||||||
m_modifiedSinceBegin = false;
|
m_modifiedSinceBegin = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::endUpdate()
|
bool Entry::endUpdate()
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_tmpHistoryItem);
|
Q_ASSERT(m_tmpHistoryItem);
|
||||||
if (m_modifiedSinceBegin) {
|
if (m_modifiedSinceBegin) {
|
||||||
|
@ -521,6 +521,8 @@ void Entry::endUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
m_tmpHistoryItem = nullptr;
|
m_tmpHistoryItem = nullptr;
|
||||||
|
|
||||||
|
return m_modifiedSinceBegin;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::updateModifiedSinceBegin()
|
void Entry::updateModifiedSinceBegin()
|
||||||
|
|
|
@ -133,7 +133,7 @@ public:
|
||||||
* if the entry has been changed.
|
* if the entry has been changed.
|
||||||
*/
|
*/
|
||||||
void beginUpdate();
|
void beginUpdate();
|
||||||
void endUpdate();
|
bool endUpdate();
|
||||||
|
|
||||||
Group* group();
|
Group* group();
|
||||||
const Group* group() const;
|
const Group* group() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue