From 7858cb445b3a67058c04e4de64fdce11974e3369 Mon Sep 17 00:00:00 2001 From: joost Date: Mon, 19 Jan 2009 10:54:19 +0000 Subject: [PATCH] * Use RestoreState in TBufdataset.Lookup, so that the Disablecontrols is false after the search git-svn-id: trunk@12568 - --- packages/fcl-db/src/base/bufdataset.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fcl-db/src/base/bufdataset.pas b/packages/fcl-db/src/base/bufdataset.pas index e7f8877597..61976f8203 100644 --- a/packages/fcl-db/src/base/bufdataset.pas +++ b/packages/fcl-db/src/base/bufdataset.pas @@ -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