mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-28 18:37:32 +01:00
ide: reset *retry* result to *ok* if backup file was created after the n-th trial
git-svn-id: trunk@25841 -
This commit is contained in:
parent
f622d42123
commit
9ec445b97d
@ -1043,15 +1043,18 @@ begin
|
||||
end;
|
||||
// backup file
|
||||
repeat
|
||||
if not IDEProcs.BackupFile(Filename,BackupFilename) then begin
|
||||
ACaption:=lisBackupFileFailed;
|
||||
AText:=Format(lisUnableToBackupFileTo, ['"', Filename, '"', '"',
|
||||
if not IDEProcs.BackupFile(Filename, BackupFilename) then
|
||||
begin
|
||||
ACaption := lisBackupFileFailed;
|
||||
AText := Format(lisUnableToBackupFileTo, ['"', Filename, '"', '"',
|
||||
BackupFilename, '"']);
|
||||
Result:=IDEMessageDialog(ACaption,AText,mterror,[mbabort,mbretry,mbignore]);
|
||||
if Result=mrAbort then exit;
|
||||
if Result=mrIgnore then Result:=mrOk;
|
||||
end;
|
||||
until Result<>mrRetry;
|
||||
Result := IDEMessageDialog(ACaption,AText,mterror,[mbabort,mbretry,mbignore]);
|
||||
if Result = mrAbort then exit;
|
||||
if Result = mrIgnore then Result := mrOk;
|
||||
end
|
||||
else
|
||||
Result := mrOk;
|
||||
until Result <> mrRetry;
|
||||
end;
|
||||
|
||||
function TBuildManager.GetResourceType(AnUnitInfo: TUnitInfo): TResourceType;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user