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:
jesus 2017-04-04 20:49:41 +00:00
parent b7c45f8ce4
commit e366739dbb

View File

@ -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;