mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:09:20 +02:00
LCL: fix exception in DbGrid on clicking when dataset is inactive, patch from Soner, issue #31631
git-svn-id: trunk@54520 -
This commit is contained in:
parent
b7c45f8ce4
commit
e366739dbb
@ -3039,7 +3039,7 @@ end;
|
||||
|
||||
function TCustomDBGrid.MouseButtonAllowed(Button: TMouseButton): boolean;
|
||||
begin
|
||||
Result:= (Button=mbLeft) or (dgAnyButtonCanSelect in Options);
|
||||
Result:= FDataLink.Active and ((Button=mbLeft) or (dgAnyButtonCanSelect in Options));
|
||||
end;
|
||||
|
||||
procedure TCustomDBGrid.DrawAllRows;
|
||||
|
Loading…
Reference in New Issue
Block a user