git-svn-id: trunk@19619 -
@@ -1436,7 +1436,7 @@ var
AFilter: String;
i: Integer;
begin
- if (FMasterLink.Dataset.RecordCount = 0) or not FMasterLink.Active then //Retrieve all data
+ if not FMasterLink.Active or (FMasterLink.Dataset.RecordCount = 0) then //Retrieve all data
FEffectiveSQL := FSqlFilterTemplate
else