You've already forked lazarus-ccr
tvplanit: Fix ini datastore not being connected if AutoConnect=true.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5065 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -33,6 +33,7 @@ type
|
|||||||
procedure Split(const AString: String; AList: TStrings);
|
procedure Split(const AString: String; AList: TStrings);
|
||||||
function UniqueID(AValue: Integer): Boolean;
|
function UniqueID(AValue: Integer): Boolean;
|
||||||
|
|
||||||
|
procedure Loaded; override;
|
||||||
procedure ReadFromIni;
|
procedure ReadFromIni;
|
||||||
procedure WriteToIni;
|
procedure WriteToIni;
|
||||||
|
|
||||||
@ -332,6 +333,13 @@ begin
|
|||||||
// Nothing to do here...
|
// Nothing to do here...
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TVpIniDatastore.Loaded;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if not (csDesigning in ComponentState) then
|
||||||
|
Connected := AutoConnect;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TVpIniDatastore.LoadEvents;
|
procedure TVpIniDatastore.LoadEvents;
|
||||||
begin
|
begin
|
||||||
// Nothing to do here...
|
// Nothing to do here...
|
||||||
|
Reference in New Issue
Block a user