lcl: use Enable/DisableControls in TDBLookup. Issue #26356

git-svn-id: trunk@45578 -
This commit is contained in:
blikblum 2014-06-19 12:45:43 +00:00
parent aad031fb47
commit 1891880cc5

View File

@ -243,7 +243,11 @@ begin
if ListLinkDataSet.IsEmpty then
Exit;
Bookmark := ListLinkDataSet.GetBookmark;
{$ifdef EnableLookupWithBlockRead}
ListLinkDataSet.BlockReadSize := 1;
{$else}
ListLinkDataSet.DisableControls;
{$endif}
FControlItems.BeginUpdate;
try
//needed to handle sqldb.TSQLQuery that does not has a reliable recordcount after Open
@ -269,7 +273,11 @@ begin
FControlItems.EndUpdate;
ListLinkDataSet.GotoBookmark(Bookmark);
ListLinkDataSet.FreeBookmark(Bookmark);
{$ifdef EnableLookupWithBlockRead}
ListLinkDataSet.BlockReadSize := 0;
{$else}
ListLinkDataSet.EnableControls;
{$endif}
end;
end;