Converter: close the opened files after form file conversion. Closing earlier causes problems sometimes.

git-svn-id: trunk@27432 -
This commit is contained in:
juha 2010-09-22 09:06:08 +00:00
parent a5821d352a
commit cd8b4c2c15

View File

@ -987,6 +987,9 @@ begin
Result:=Converter.ConvertFormFile;
Result:=Converter.CheckFailed(Result);
if Result<>mrOK then exit;
// Finally save and maybe close the file.
Result:=SaveAndMaybeClose(Converter.fLazUnitFilename);
if Result<>mrOK then exit;
end;
finally
Screen.Cursor:=crDefault;
@ -1494,9 +1497,6 @@ var
Result:=Converter.CheckFailed(Result);
if Result<>mrOK then exit;
Result:=Converter.ConvertUnitFile;
if Result<>mrOK then exit;
// Finally save and maybe close the file.
Result:=SaveAndMaybeClose(Converter.fLazUnitFilename);
end;
var