Make Entry::endUpdate() return whether the entry has been modified.

This commit is contained in:
Felix Geyer 2016-07-31 23:49:38 +02:00 committed by Jonathan White
parent c78822f6e6
commit 61ce733c6f
2 changed files with 4 additions and 2 deletions

View File

@ -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()

View File

@ -133,7 +133,7 @@ public:
* if the entry has been changed.
*/
void beginUpdate();
void endUpdate();
bool endUpdate();
Group* group();
const Group* group() const;