IDE: save editor file: stop on any WriteUnitSource failure

git-svn-id: trunk@17806 -
This commit is contained in:
mattias 2008-12-11 23:05:26 +00:00
parent a3471e0254
commit a551e636a9

View File

@ -7181,7 +7181,7 @@ begin
begin
// save source to file
Result := ActiveUnitInfo.WriteUnitSource;
if Result = mrAbort then
if Result <> mrOK then
Exit;
DestFilename := ActiveUnitInfo.Filename;
end;