From 0fdab64271ae1f35e32e7cbcd53e6d8534fd6ab9 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 26 May 2015 11:13:52 +0200 Subject: [PATCH] hide TCollection default editor for example in the category Editor, 'Shortcuts' are not anymore visible but editable in the category shortcuts --- src/ce_optionseditor.pas | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ce_optionseditor.pas b/src/ce_optionseditor.pas index 0675857e..6923c2cd 100644 --- a/src/ce_optionseditor.pas +++ b/src/ce_optionseditor.pas @@ -241,9 +241,11 @@ begin if aEditor.GetComponent(0) is TComponent then begin if aEditor.GetPropInfo^.Name = 'Tag' then - aSHow := false; - if aEditor.GetPropInfo^.Name = 'Name' then - aSHow := false; + aShow := false + else if aEditor.GetPropInfo^.Name = 'Name' then + aShow := false + else if aEditor.GetPropInfo^.PropType = TypeInfo(TCollection) then + aShow := false; end; end;