Merged revision(s) 56904 #f8d6369f36 from trunk:

Designer: Do not free component's PopupMenuComponentEditor when deleting a CollectionItem. Issue #32820.
........

git-svn-id: branches/fixes_1_8@56937 -
This commit is contained in:
maxim 2018-01-03 14:05:31 +00:00
parent bb5e1ef63b
commit 72f0fe8876

View File

@ -2985,10 +2985,10 @@ begin
if APersistent=nil then exit;
try
//debugln(['TDesigner.DoDeletePersistent A ',dbgsName(APersistent),' FreeIt=',FreeIt]);
PopupMenuComponentEditor:=nil;
// unselect component
Selection.Remove(APersistent);
if (APersistent is TComponent) then begin
PopupMenuComponentEditor:=nil;
AComponent:=TComponent(APersistent);
if csDestroying in AComponent.ComponentState then
FreeIt:=false;