From d5fb5a417eca62e6a6e5f0133833363aa830b6dc Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Mon, 1 Aug 2016 19:41:27 +0000 Subject: [PATCH] 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 --- components/tvplanit/source/vpinids.pas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/tvplanit/source/vpinids.pas b/components/tvplanit/source/vpinids.pas index d21a9756f..c0e85109f 100644 --- a/components/tvplanit/source/vpinids.pas +++ b/components/tvplanit/source/vpinids.pas @@ -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...