mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 05:10:13 +02:00
IDE: rename unit: fix resource directive only if lfm exists
git-svn-id: trunk@36487 -
This commit is contained in:
parent
3e852e27be
commit
11f34a7ec5
14
ide/main.pp
14
ide/main.pp
@ -6289,13 +6289,13 @@ begin
|
||||
LFMCode:=CodeToolBoss.LoadFile(NewLFMFilename,true,false);
|
||||
if LFMCode<>nil then
|
||||
NewLFMFilename:=LFMCode.Filename;
|
||||
end;
|
||||
ConvTool:=TConvDelphiCodeTool.Create(NewSource);
|
||||
try
|
||||
if not ConvTool.RenameResourceDirectives then
|
||||
debugln(['TMainIDE.DoRenameUnit WARNING: unable to rename resource directive in "',NewSource.Filename,'"']);
|
||||
finally
|
||||
ConvTool.Free;
|
||||
ConvTool:=TConvDelphiCodeTool.Create(NewSource);
|
||||
try
|
||||
if not ConvTool.RenameResourceDirectives then
|
||||
debugln(['TMainIDE.DoRenameUnit WARNING: unable to rename resource directive in "',NewSource.Filename,'"']);
|
||||
finally
|
||||
ConvTool.Free;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user