mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 06:20:55 +02:00
IDE: cleanup code in DialogProgs.
git-svn-id: trunk@41573 -
This commit is contained in:
parent
f597e810ce
commit
0d20e5d2a5
@ -128,10 +128,8 @@ function RenameFileWithErrorDialogs(const SrcFilename, DestFilename: string;
|
||||
var
|
||||
DlgButtons: TMsgDlgButtons;
|
||||
begin
|
||||
if SrcFilename=DestFilename then begin
|
||||
Result:=mrOk;
|
||||
exit;
|
||||
end;
|
||||
if SrcFilename=DestFilename then
|
||||
exit(mrOk);
|
||||
repeat
|
||||
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
||||
InvalidateFileStateCache(SrcFilename);
|
||||
|
Loading…
Reference in New Issue
Block a user