tvplanit: Fix mormotdemo not being updated after changed dataset.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5125 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
dfe9715d19
commit
ab1d9ee4dc
@ -26,7 +26,6 @@
|
||||
<RunParams>
|
||||
<local>
|
||||
<FormatVersion Value="1"/>
|
||||
<CommandLineParams Value="-noserver"/>
|
||||
</local>
|
||||
</RunParams>
|
||||
<RequiredPackages Count="3">
|
||||
|
@ -815,13 +815,13 @@ procedure TVpCustomDataStore.NotifyDependents;
|
||||
var
|
||||
I: Integer;
|
||||
begin
|
||||
if (Owner = nil) or Loading then
|
||||
if (FLinkedOwner = nil) or Loading then
|
||||
Exit;
|
||||
|
||||
for I := 0 to pred(Owner.ComponentCount) do begin
|
||||
if (Owner.Components[I] is TVpLinkableControl) then begin
|
||||
if (TVpLinkableControl(Owner.Components[I]).DataStore = self) then
|
||||
TVpLinkableControl(Owner.Components[I]).Invalidate;
|
||||
for I := 0 to pred(FLinkedOwner.ComponentCount) do begin
|
||||
if (FLinkedOwner.Components[I] is TVpLinkableControl) then begin
|
||||
if (TVpLinkableControl(FLinkedOwner.Components[I]).DataStore = self) then
|
||||
TVpLinkableControl(FLinkedOwner.Components[I]).Invalidate;
|
||||
end
|
||||
end;
|
||||
NotifyLinked;
|
||||
|
Loading…
Reference in New Issue
Block a user