mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 01:11:16 -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;
|
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…
x
Reference in New Issue
Block a user