mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 04:18:22 +01:00
Converter: close the opened files after form file conversion. Closing earlier causes problems sometimes.
git-svn-id: trunk@27432 -
This commit is contained in:
parent
a5821d352a
commit
cd8b4c2c15
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user