From d773b5aa0fa0e518682772c83f6decbe0d6a1a1d Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 27 Jun 2023 19:52:17 -0400 Subject: [PATCH] signal an edit change when we change a name/value in the PropertyListEditor --- .../Editors/PropertyList/PropertyListEditor.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libraries/UniversalEditor.UserInterface/Editors/PropertyList/PropertyListEditor.cs b/Libraries/UniversalEditor.UserInterface/Editors/PropertyList/PropertyListEditor.cs index 1fa4cca0..c71c5f37 100644 --- a/Libraries/UniversalEditor.UserInterface/Editors/PropertyList/PropertyListEditor.cs +++ b/Libraries/UniversalEditor.UserInterface/Editors/PropertyList/PropertyListEditor.cs @@ -92,6 +92,11 @@ namespace UniversalEditor.Editors.PropertyList Group group = e.Row.GetExtraData("group"); Property property = e.Row.GetExtraData("property"); + if (e.NewValue == e.OldValue) + return; + + BeginEdit(); + if (e.Column == tv.Model.Columns[0]) { // changing the Name @@ -116,6 +121,8 @@ namespace UniversalEditor.Editors.PropertyList property.Value = e.NewValue; } } + + EndEdit(); } private int GetNextIndex(IPropertyListContainer parent = null) where T : PropertyListItem