Make sure that the 'version' attribute is updated when config attributes are changed

fixes #10355
This commit is contained in:
Gunnar Beutner 2015-10-14 13:04:39 +02:00
parent 14e37a0554
commit 74aa5c1d6b
1 changed files with 3 additions and 4 deletions

View File

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