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);
|
||||
function UniqueID(AValue: Integer): Boolean;
|
||||
|
||||
procedure Loaded; override;
|
||||
procedure ReadFromIni;
|
||||
procedure WriteToIni;
|
||||
|
||||
@ -332,6 +333,13 @@ begin
|
||||
// Nothing to do here...
|
||||
end;
|
||||
|
||||
procedure TVpIniDatastore.Loaded;
|
||||
begin
|
||||
inherited;
|
||||
if not (csDesigning in ComponentState) then
|
||||
Connected := AutoConnect;
|
||||
end;
|
||||
|
||||
procedure TVpIniDatastore.LoadEvents;
|
||||
begin
|
||||
// Nothing to do here...
|
||||
|
Reference in New Issue
Block a user