LCL, fix DBNavigator enabled state from Junior Goncalves, issue #10794

git-svn-id: trunk@14054 -
This commit is contained in:
jesus 2008-02-09 19:35:07 +00:00
parent 5a6bbf49a4
commit 544e51f855

View File

@ -360,6 +360,15 @@ begin
end;
end;
procedure TDBCustomNavigator.SetEnabled(Value: Boolean);
begin
if Value<>Enabled then begin
inherited SetEnabled(Value);
if not (csLoading in ComponentState) then
UpdateButtons;
end;
end;
constructor TDBCustomNavigator.Create(TheOwner: TComponent);
begin
BeginUpdateButtons;