mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
IDE: delphi converter: fix missing units after removing windows unit, bug #15641
git-svn-id: trunk@23686 -
This commit is contained in:
parent
e01fe377a6
commit
dbcecc82ab
@ -703,15 +703,6 @@ begin
|
||||
Result:=CheckFilenameForLCLPaths(LazarusUnitFilename);
|
||||
if Result<>mrOk then exit;
|
||||
|
||||
// fix or comment missing units
|
||||
DebugLn('ConvertDelphiToLazarusUnit FixMissingUnits');
|
||||
Result:=FixMissingUnits(LazarusUnitFilename,cdtlufIsSubProc in Flags,true);
|
||||
if Result=mrAbort then exit;
|
||||
if (Result<>mrOk) then begin
|
||||
Result:=JumpToCodetoolErrorAndAskToAbort(cdtlufIsSubProc in Flags);
|
||||
exit;
|
||||
end;
|
||||
|
||||
// add {$mode delphi} directive
|
||||
// remove windows unit and add LResources, LCLIntf
|
||||
// remove {$R *.dfm} or {$R *.xfm} directive
|
||||
@ -724,6 +715,15 @@ begin
|
||||
cdtlufIsSubProc in Flags,Result)
|
||||
then exit;
|
||||
|
||||
// fix or comment missing units
|
||||
DebugLn('ConvertDelphiToLazarusUnit FixMissingUnits');
|
||||
Result:=FixMissingUnits(LazarusUnitFilename,cdtlufIsSubProc in Flags,true);
|
||||
if Result=mrAbort then exit;
|
||||
if (Result<>mrOk) then begin
|
||||
Result:=JumpToCodetoolErrorAndAskToAbort(cdtlufIsSubProc in Flags);
|
||||
exit;
|
||||
end;
|
||||
|
||||
if cdtlufCheckLFM in Flags then begin
|
||||
// check the LFM file and the pascal unit
|
||||
DebugLn('ConvertDelphiToLazarusUnit Check new .lfm and .pas file');
|
||||
|
Loading…
Reference in New Issue
Block a user