mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [0002054] Multi Rename Tool not working for "repeating" filenames
This commit is contained in:
parent
71d4602c5e
commit
c66fd647d3
1 changed files with 2 additions and 2 deletions
|
|
@ -1174,11 +1174,11 @@ begin
|
|||
|
||||
// Avoid collisions with OldNames
|
||||
J:= FOldNames.Find(AFile.Name);
|
||||
if J >= 0 then
|
||||
if (J >= 0) and (J <> I) then
|
||||
begin
|
||||
NewName:= AFile.Name;
|
||||
// Generate temp file name, save file index as extension
|
||||
AFile.Name:= ExtractFileName(GetTempName(FFiles[I].Path)) + ExtensionSeparator + IntToStr(I);
|
||||
AFile.FullPath:= GetTempName(FFiles[I].Path) + ExtensionSeparator + IntToStr(I);
|
||||
TempFiles.AddObject(NewName, AFile.Clone);
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue