From 74aa5c1d6b44371d0df1f50b14bbac728fb6c06a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 14 Oct 2015 13:04:39 +0200 Subject: [PATCH] Make sure that the 'version' attribute is updated when config attributes are changed fixes #10355 --- lib/base/configobject.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index 1e10da9a4..87cd3d910 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -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) -- 2.40.0