Sfoglia il codice sorgente

* Applied patch from Luiz Americo not to send events when setting datasource to same value again (bug #21906)

git-svn-id: trunk@21158 -
michael 13 anni fa
parent
commit
27840f247c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      packages/fcl-db/src/base/datasource.inc

+ 2 - 0
packages/fcl-db/src/base/datasource.inc

@@ -245,6 +245,8 @@ end;
 Procedure TDataLink.SetDataSource(Value : TDatasource);
 
 begin
+  if FDataSource = Value then
+    Exit;
   if not FDataSourceFixed then
     begin
     if Assigned(DataSource) then