mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: the issue introduced in a787a8f
This commit is contained in:
parent
e2222a8a8e
commit
89fcab4624
3 changed files with 4 additions and 6 deletions
|
|
@ -1105,6 +1105,7 @@ begin
|
|||
end;
|
||||
end;
|
||||
ADisplayFile := TDisplayFile.Create(AFile);
|
||||
ADisplayFile.DisplayName:= FileSource.GetDisplayFileName(AFile);
|
||||
FHashedFiles.Add(ADisplayFile, nil);
|
||||
FHashedNames.Add(AFileKey, ADisplayFile);
|
||||
InsertFile(ADisplayFile, FAllDisplayFiles, NewFilesPosition);
|
||||
|
|
|
|||
|
|
@ -825,9 +825,8 @@ begin
|
|||
else
|
||||
begin
|
||||
AFile := TDisplayFile.Create(aFileSourceFiles[i]);
|
||||
|
||||
AFile.DisplayName:= fs.GetDisplayFileName(aFileSourceFiles[i]);
|
||||
AFile.TextColor:= gColorExt.GetColorBy(AFile.FSFile);
|
||||
|
||||
if HaveIcons then
|
||||
begin
|
||||
AFile.IconID := PixMapManager.GetIconByFile(fs,
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ end;
|
|||
|
||||
procedure TDisplayFile.SetDisplayName(const name: String);
|
||||
begin
|
||||
if name = EmptyStr then begin
|
||||
if (name=EmptyStr) and Assigned(FSFile) then begin
|
||||
FDisplayName:= FSFile.Name;
|
||||
FDisplayNameNoExt:= FSFile.NameNoExt;
|
||||
FDisplayExt:= FSFile.Extension;
|
||||
|
|
@ -207,10 +207,8 @@ begin
|
|||
end;
|
||||
|
||||
if Assigned(AFile.FFSFile) then
|
||||
begin
|
||||
AFile.FDisplayStrings.AddStrings(FDisplayStrings);
|
||||
AFile.DisplayName:= FDisplayName;
|
||||
end;
|
||||
AFile.DisplayName:= FDisplayName;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue