mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 14:59:22 +02:00
Converter: Improve single unit file conversion. Load and save it properly.
git-svn-id: trunk@27329 -
This commit is contained in:
parent
8e81570b80
commit
2581056c23
@ -444,8 +444,16 @@ begin
|
||||
Result:=CopyAndLoadFile;
|
||||
if Result=mrOK then begin
|
||||
Result:=ConvertUnitFile;
|
||||
if Result=mrOk then
|
||||
Result:=ConvertFormFile;
|
||||
if Result=mrOk then begin
|
||||
Result:=SaveCodeBufferToFile(fPascalBuffer,fLazUnitFilename);
|
||||
if Result=mrOk then begin
|
||||
Result:=LazarusIDE.DoOpenEditorFile(fLazUnitFilename,0,
|
||||
[ofOnlyIfExists,ofQuiet]);
|
||||
if Result=mrOk then begin
|
||||
Result:=ConvertFormFile;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
if Result=mrOk then
|
||||
|
Loading…
Reference in New Issue
Block a user