mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-09 01:56:06 +02:00
* Enable TDatasource.Enabled
This commit is contained in:
parent
7d544eafc0
commit
96d5ad47f8
@ -8231,6 +8231,7 @@ procedure TDatasource.SetEnabled(Value: Boolean);
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
FEnabled:=Value;
|
FEnabled:=Value;
|
||||||
|
ProcessEvent(deUpdateState,0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -8283,7 +8284,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
NeedDataChange:=(FState=dsInactive);
|
NeedDataChange:=(FState=dsInactive);
|
||||||
FLastState:=FState;
|
FLastState:=FState;
|
||||||
If Assigned(Dataset) then
|
If Assigned(Dataset) and enabled then
|
||||||
FState:=Dataset.State
|
FState:=Dataset.State
|
||||||
else
|
else
|
||||||
FState:=dsInactive;
|
FState:=dsInactive;
|
||||||
|
Loading…
Reference in New Issue
Block a user