mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 14:29:36 +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;
|
Result:=CopyAndLoadFile;
|
||||||
if Result=mrOK then begin
|
if Result=mrOK then begin
|
||||||
Result:=ConvertUnitFile;
|
Result:=ConvertUnitFile;
|
||||||
if Result=mrOk then
|
if Result=mrOk then begin
|
||||||
Result:=ConvertFormFile;
|
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;
|
||||||
end;
|
end;
|
||||||
if Result=mrOk then
|
if Result=mrOk then
|
||||||
|
Loading…
Reference in New Issue
Block a user