mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: the issue of hashKey in TSearchResultFileSource (files in TSearchResultFileSource do not have a unified parent path)
This commit is contained in:
parent
c791c0e801
commit
c8e9765bb1
1 changed files with 1 additions and 7 deletions
|
|
@ -1061,15 +1061,9 @@ begin
|
|||
end;
|
||||
|
||||
function TFileView.calcFileHashKey(const FileName, APath: String): String;
|
||||
var
|
||||
subPath: String;
|
||||
begin
|
||||
if fspMounted in FileSource.GetProperties then begin
|
||||
if FFlatView then begin
|
||||
Result := ExcludeTrailingPathDelimiter( APath + FileName );
|
||||
end else if FFlatView then begin
|
||||
subPath := APath.Substring( currentPath.Length );
|
||||
if subPath<>EmptyStr then subPath := IncludeTrailingPathDelimiter(subPath);
|
||||
Result := subPath + FileName;
|
||||
end else begin
|
||||
Result := FileName;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue