mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:09:15 +02:00
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:
parent
bb5e1ef63b
commit
72f0fe8876
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user