mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-01 08:36:09 +02:00
ide: fix few issues in object inspector options page
git-svn-id: trunk@17370 -
This commit is contained in:
parent
aa6e9e64dd
commit
509b623bab
@ -104,7 +104,7 @@ end;
|
||||
|
||||
procedure TOIOptionsFrame.ColorBoxChange(Sender: TObject);
|
||||
begin
|
||||
if not FLoaded then
|
||||
if not FLoaded or (ColorsListBox.ItemIndex < 0) then
|
||||
Exit;
|
||||
ColorsListBox.Items.Objects[ColorsListBox.ItemIndex] := TObject(PtrInt(ColorBox.Selected));
|
||||
end;
|
||||
@ -112,7 +112,7 @@ end;
|
||||
procedure TOIOptionsFrame.ColorsListBoxSelectionChange(Sender: TObject;
|
||||
User: boolean);
|
||||
begin
|
||||
if not FLoaded then
|
||||
if not (FLoaded and User) then
|
||||
Exit;
|
||||
ColorBox.Selected := ColorsListBox.Selected;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user