mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 14:00:18 +02:00
lcl: add lookup items between BeginUpdate and EndUpdate calls
git-svn-id: trunk@44678 -
This commit is contained in:
parent
af57f786ce
commit
38aa838fa1
@ -242,6 +242,7 @@ begin
|
||||
Exit;
|
||||
Bookmark := ListLinkDataSet.GetBookmark;
|
||||
ListLinkDataSet.BlockReadSize := 1;
|
||||
FControlItems.BeginUpdate;
|
||||
try
|
||||
//needed to handle sqldb.TSQLQuery that does not has a reliable recordcount after Open
|
||||
ListLinkDataSet.Last;
|
||||
@ -263,6 +264,7 @@ begin
|
||||
end;
|
||||
SetLength(FListKeys, KeyListCount);
|
||||
finally
|
||||
FControlItems.EndUpdate;
|
||||
ListLinkDataSet.GotoBookmark(Bookmark);
|
||||
ListLinkDataSet.FreeBookmark(Bookmark);
|
||||
ListLinkDataSet.BlockReadSize := 0;
|
||||
|
Loading…
Reference in New Issue
Block a user