add method to check if an open transaction is empty

This is needed to avoid to incorrectly abort a transaction if a recompute was done between opening and closing an editor in the property view
This commit is contained in:
wmayer
2018-11-10 14:50:58 +01:00
parent ccbf7a6c3a
commit 06fa64a00d
5 changed files with 24 additions and 2 deletions

View File

@@ -110,6 +110,11 @@ void Transaction::Restore(Base::XMLReader &/*reader*/)
assert(0);
}
bool Transaction::isEmpty() const
{
return _Objects.empty();
}
int Transaction::getPos(void) const
{
return iPos;