Only update version when config attributes are changed

refs #10257
This commit is contained in:
Gunnar Beutner 2015-10-01 04:45:50 +02:00
parent 9dcb33e8f4
commit 55616209ae
1 changed files with 4 additions and 3 deletions

View File

@ -222,11 +222,12 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
SetField(fid, newValue); SetField(fid, newValue);
if (updated_original_attributes) {
if (updateVersion) if (updateVersion)
SetVersion(Utility::GetTime()); SetVersion(Utility::GetTime());
if (updated_original_attributes)
NotifyOriginalAttributes(); NotifyOriginalAttributes();
}
} }
void ConfigObject::RestoreAttribute(const String& attr) void ConfigObject::RestoreAttribute(const String& attr)