Forráskód Böngészése

* 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 éve
szülő
commit
27840f247c
1 módosított fájl, 2 hozzáadás és 0 törlés
  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