mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 21:39:39 +02:00
Revert partly "Add HookGetCheckboxForBoolean handler in OI only once."
This reverts partly commit943e4e4ff7
. (cherry picked from commit45a590ed0b
)
This commit is contained in:
parent
ca16e51245
commit
feb2cb481c
@ -1385,6 +1385,7 @@ procedure TOICustomPropertyGrid.SetPropertyEditorHook(
|
||||
begin
|
||||
if FPropertyEditorHook=NewPropertyEditorHook then exit;
|
||||
FPropertyEditorHook:=NewPropertyEditorHook;
|
||||
FPropertyEditorHook.AddHandlerGetCheckboxForBoolean(@HookGetCheckboxForBoolean);
|
||||
IncreaseChangeStep;
|
||||
SetSelection(FSelection);
|
||||
end;
|
||||
@ -4512,12 +4513,7 @@ begin
|
||||
Selection := nil;
|
||||
for Page:=Low(TObjectInspectorPage) to High(TObjectInspectorPage) do
|
||||
if GridControl[Page]<>nil then
|
||||
begin
|
||||
if Page=oipgpProperties then // Add HookGetCheckboxForBoolean only once.
|
||||
FPropertyEditorHook.AddHandlerGetCheckboxForBoolean(
|
||||
@GridControl[Page].HookGetCheckboxForBoolean);
|
||||
GridControl[Page].PropertyEditorHook:=FPropertyEditorHook;
|
||||
end;
|
||||
OldSelection:=TPersistentSelectionList.Create;
|
||||
try
|
||||
FPropertyEditorHook.GetSelection(OldSelection);
|
||||
|
Loading…
Reference in New Issue
Block a user