Przeglądaj źródła

fcl-db: sqldb: TSQLDBLibraryLoader do not check Enabled while loading component properties.

git-svn-id: trunk@37570 -
lacak 7 lat temu
rodzic
commit
1915fd8932
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/fcl-db/src/sqldb/sqldblib.pp

+ 2 - 2
packages/fcl-db/src/sqldb/sqldblib.pp

@@ -38,12 +38,12 @@ implementation
 Resourcestring
 Resourcestring
    SErrConnnected = 'This operation is not allowed while the datatabase is loaded';
    SErrConnnected = 'This operation is not allowed while the datatabase is loaded';
    SErrInvalidConnectionType = 'Invalid connection type : "%s"';
    SErrInvalidConnectionType = 'Invalid connection type : "%s"';
+
 { TSQLDBLibraryLoader }
 { TSQLDBLibraryLoader }
 
 
 procedure TSQLDBLibraryLoader.CheckDisabled;
 procedure TSQLDBLibraryLoader.CheckDisabled;
-
 begin
 begin
-  If Enabled then
+  If not (csLoading in ComponentState) and Enabled then
     DatabaseError(SErrConnnected,Self);
     DatabaseError(SErrConnnected,Self);
 end;
 end;