IDE: simplified

git-svn-id: trunk@47754 -
This commit is contained in:
mattias 2015-02-13 21:31:36 +00:00
parent 312c5f1c59
commit 707c60c7eb

View File

@ -1682,7 +1682,7 @@ begin
BackupFilename:=FileNameOnly+FileExt; BackupFilename:=FileNameOnly+FileExt;
end; end;
if BackupInfo.SubDirectory<>'' then if BackupInfo.SubDirectory<>'' then
BackupFilename:=SubDir+PathDelim+BackupFilename BackupFilename:=AppendPathDelim(SubDir)+BackupFilename
else else
BackupFilename:=FilePath+BackupFilename; BackupFilename:=FilePath+BackupFilename;
// remove old backup file // remove old backup file
@ -1700,7 +1700,7 @@ begin
end else begin end else begin
// backup with counter // backup with counter
if BackupInfo.SubDirectory<>'' then if BackupInfo.SubDirectory<>'' then
BackupFilename:=SubDir+PathDelim+FileNameOnly+FileExt+';' BackupFilename:=AppendPathDelim(SubDir)+FileNameOnly+FileExt+';'
else else
BackupFilename:=Filename+';'; BackupFilename:=Filename+';';
if BackupInfo.MaxCounter<=0 then begin if BackupInfo.MaxCounter<=0 then begin