Commit f8d6369f authored by Juha Manninen's avatar Juha Manninen
Browse files

Designer: Do not free component's PopupMenuComponentEditor when deleting a...

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

git-svn-id: trunk@56904 -
parent 53853067
......@@ -2983,10 +2983,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment