diff --git a/src/ce_interfaces.pas b/src/ce_interfaces.pas index c40ec101..bfe14f0f 100644 --- a/src/ce_interfaces.pas +++ b/src/ce_interfaces.pas @@ -168,7 +168,7 @@ type TOptionEditorKind = (oekGeneric, oekForm, oekControl); // event generated by the option editor and passed to an ICEEditableOptions. // the oeeChange event only happends if the container is oekGeneric. - TOptionEditorEvent = (oeeCancel, oeeAccept, oeeChange); + TOptionEditorEvent = (oeeCancel, oeeAccept, oeeChange, oeeSelectCat); (** * An implementer can expose some options to be edited in a dedicated widget. *) diff --git a/src/ce_optionseditor.pas b/src/ce_optionseditor.pas index 5849f3df..8666407b 100644 --- a/src/ce_optionseditor.pas +++ b/src/ce_optionseditor.pas @@ -174,6 +174,10 @@ begin inspector.TIObject := dt^.container; end; end; + // + PCategoryData(selCat.Selected.Data)^ + .observer + .optionedEvent(oeeSelectCat); end; procedure TCEOptionEditorWidget.inspectorModified(Sender: TObject);