From 55616209ae98e237c2a9ba02e012697cc5a42f3a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 1 Oct 2015 04:45:50 +0200 Subject: [PATCH] Only update version when config attributes are changed refs #10257 --- lib/base/configobject.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index 2c3a4ea18..1e10da9a4 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -222,11 +222,12 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool SetField(fid, newValue); - if (updateVersion) - SetVersion(Utility::GetTime()); + if (updated_original_attributes) { + if (updateVersion) + SetVersion(Utility::GetTime()); - if (updated_original_attributes) NotifyOriginalAttributes(); + } } void ConfigObject::RestoreAttribute(const String& attr)