Ver Fonte

FIX: False positives when synchronizing directories with zero-length files (issue #163)

Alexander Koblov há 4 anos atrás
pai
commit
f585d79444
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/fsyncdirsdlg.pas

+ 2 - 1
src/fsyncdirsdlg.pas

@@ -1100,7 +1100,8 @@ procedure TfrmSyncDirsDlg.FillFoundItemsDG;
         if Assigned(r.FFileL) and not Assigned(r.FFileR) then Inc(FuniqueL) else
         if Assigned(r.FFileR) and not Assigned(r.FFileL) then Inc(FuniqueR);
         if r.FState = srsEqual then Inc(Fequal) else
-        if r.FState = srsNotEq then Inc(Fnoneq);
+        if r.FState = srsNotEq then Inc(Fnoneq) else
+        if Assigned(r.FFileL) and Assigned(r.FFileR) then Inc(Fnoneq);
       end;
     end;
   end;