mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 00:59:38 +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
|
var
|
||||||
DlgButtons: TMsgDlgButtons;
|
DlgButtons: TMsgDlgButtons;
|
||||||
begin
|
begin
|
||||||
if SrcFilename=DestFilename then begin
|
if SrcFilename=DestFilename then
|
||||||
Result:=mrOk;
|
exit(mrOk);
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
repeat
|
repeat
|
||||||
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
||||||
InvalidateFileStateCache(SrcFilename);
|
InvalidateFileStateCache(SrcFilename);
|
||||||
|
Loading…
Reference in New Issue
Block a user