From cd8b4c2c1539035deee060bd84208a9f139a2ae9 Mon Sep 17 00:00:00 2001 From: juha Date: Wed, 22 Sep 2010 09:06:08 +0000 Subject: [PATCH] Converter: close the opened files after form file conversion. Closing earlier causes problems sometimes. git-svn-id: trunk@27432 - --- converter/convertdelphi.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/converter/convertdelphi.pas b/converter/convertdelphi.pas index c995934c79..80f51592e3 100644 --- a/converter/convertdelphi.pas +++ b/converter/convertdelphi.pas @@ -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