mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:28:19 +02:00
IDEIntf: OI: forbid showing sub properties of a TPersistent property if value is selected component, bug #11355
git-svn-id: trunk@15908 -
This commit is contained in:
parent
12f1a8ff3d
commit
d1c8d571f1
@ -1734,7 +1734,7 @@ end;
|
||||
|
||||
function TOICustomPropertyGrid.CanExpandRow(Row: TOIPropertyGridRow): boolean;
|
||||
var
|
||||
AnObject: TObject;
|
||||
AnObject: TPersistent;
|
||||
ParentRow: TOIPropertyGridRow;
|
||||
begin
|
||||
Result:=false;
|
||||
@ -1742,7 +1742,8 @@ begin
|
||||
if (not (paSubProperties in Row.Editor.GetAttributes)) then exit;
|
||||
// check if circling
|
||||
if (Row.Editor is TPersistentPropertyEditor) then begin
|
||||
AnObject:=Row.Editor.GetObjectValue;
|
||||
AnObject:=TPersistent(Row.Editor.GetObjectValue);
|
||||
if FSelection.IndexOf(AnObject)>=0 then exit;
|
||||
ParentRow:=Row.Parent;
|
||||
while ParentRow<>nil do begin
|
||||
if (ParentRow.Editor is TPersistentPropertyEditor)
|
||||
|
Loading…
Reference in New Issue
Block a user