diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Editors/Binary/BinaryEditor.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Editors/Binary/BinaryEditor.cs index 89049057..cfc56020 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Editors/Binary/BinaryEditor.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Editors/Binary/BinaryEditor.cs @@ -46,6 +46,17 @@ namespace UniversalEditor.Editors.Binary throw new NotImplementedException(); } + protected override void OnObjectModelSaving(System.ComponentModel.CancelEventArgs e) + { + base.OnObjectModelSaving(e); + + // flush the current data + BinaryObjectModel bom = (ObjectModel as BinaryObjectModel); + if (bom == null) return; + + bom.Data = hexedit.Data; + } + private static EditorReference _er = null; public override EditorReference MakeReference() {