mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 21:00:34 +02:00
SynEdit Design: Fixed the property editor did not close, if the SynEdit was deleted.
git-svn-id: trunk@18365 -
This commit is contained in:
parent
3fe186c1da
commit
8f53ab61e2
@ -388,10 +388,12 @@ begin
|
||||
if ClassComboBox.Items.Count >0 then
|
||||
ClassComboBox.ItemIndex := 0;
|
||||
|
||||
if (assigned(NewOwnerPersistent)) and (NewOwnerPersistent is TSynObjectList) then
|
||||
FOwnerPersistent := (NewOwnerPersistent as TSynObjectList).Owner
|
||||
// Can not use NewOwnerPersistent since it points to the SynGutter
|
||||
if NewSynObjectPartList <> nil then
|
||||
FOwnerPersistent := NewSynObjectPartList.Owner // The SynEdit
|
||||
else
|
||||
FOwnerPersistent := NewOwnerPersistent;
|
||||
FOwnerPersistent := nil;
|
||||
|
||||
FPropertyName := NewPropName;
|
||||
//debugln('TSynObjectPartListPropertyEditorForm.SetSynObjectPartList A SynObjectPartList=',dbgsName(FSynObjectPartList),' OwnerPersistent=',dbgsName(OwnerPersistent),' PropName=',PropertyName);
|
||||
if GlobalDesignHook <> nil then
|
||||
|
Loading…
Reference in New Issue
Block a user