mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 02:19:39 +02:00
ide: fix IDE option dialog ReadSettings, WriteSettings - call methods if supported class is ancestor too
git-svn-id: trunk@23341 -
This commit is contained in:
parent
8cfb4412a9
commit
5413724717
@ -184,7 +184,8 @@ var
|
||||
begin
|
||||
if Node.Data <> nil then
|
||||
with TAbstractIDEOptionsEditor(Node.Data) do
|
||||
if SupportedOptionsClass = ClassTypeForCompare then
|
||||
if ((ClassTypeForCompare = nil) and (SupportedOptionsClass = nil)) or
|
||||
ClassTypeForCompare.InheritsFrom(SupportedOptionsClass) then
|
||||
ReadSettings(AOptions);
|
||||
Traverse(Node.GetFirstChild);
|
||||
Traverse(Node.GetNextSibling);
|
||||
@ -211,7 +212,8 @@ var
|
||||
begin
|
||||
if Node.Data <> nil then
|
||||
with TAbstractIDEOptionsEditor(Node.Data) do
|
||||
if SupportedOptionsClass = ClassTypeForCompare then
|
||||
if ((ClassTypeForCompare = nil) and (SupportedOptionsClass = nil)) or
|
||||
ClassTypeForCompare.InheritsFrom(SupportedOptionsClass) then
|
||||
WriteSettings(AOptions);
|
||||
Traverse(Node.GetFirstChild);
|
||||
Traverse(Node.GetNextSibling);
|
||||
|
Loading…
Reference in New Issue
Block a user