You've already forked lazarus-ccr
fix TRxHistoryNavigator with empty Back or Forward buttons
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -190,8 +190,14 @@ end;
|
||||
procedure TRxHistoryNavigator.EnableAction(ActName: byte; Enable: boolean);
|
||||
begin
|
||||
if First=nil then Enable:=false;
|
||||
if ActName = 0 then (FBackBtnItem.Action as TAction).Enabled:=Enable
|
||||
else (FForwardBtnItem.Action as TAction).Enabled:=Enable
|
||||
if ActName = 0 then
|
||||
begin
|
||||
if Assigned(FBackBtnItem) then
|
||||
(FBackBtnItem.Action as TAction).Enabled:=Enable
|
||||
end
|
||||
else
|
||||
if Assigned(FForwardBtnItem) then
|
||||
(FForwardBtnItem.Action as TAction).Enabled:=Enable
|
||||
end;
|
||||
|
||||
procedure TRxHistoryNavigator.BackProc(Sender: TObject);
|
||||
|
Reference in New Issue
Block a user