* Use RestoreState in TBufdataset.Lookup, so that the Disablecontrols is false after the search

git-svn-id: trunk@12568 -
This commit is contained in:
joost 2009-01-19 10:54:19 +00:00
parent 7613f3eb5f
commit 7858cb445b

View File

@ -2746,7 +2746,7 @@ begin
CurrLinkItem := (FCurrentIndex as TDoubleLinkedBufIndex).FFirstRecBuf;
FilterBuffer:=IntAllocRecordBuffer;
move((FCurrentIndex as TDoubleLinkedBufIndex).FLastRecBuf^,FilterBuffer^,FRecordsize+sizeof(TBufRecLinkItem)*FMaxIndexesCount);
SetTempState(StoreDSState);
RestoreState(StoreDSState);
// Iterate through the records until a match is found
while (CurrLinkItem <> (FCurrentIndex as TDoubleLinkedBufIndex).FLastRecBuf) do