mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 08:09:34 +02:00
IDE: Prevent an error "Unable to find the component class ..." with an .lfm file open in editor. Part of issue #40377.
This commit is contained in:
parent
31bbbe6b1e
commit
4ed8ff9b1c
@ -7406,6 +7406,9 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// For example .lfm file open in editor
|
||||||
|
if not FilenameIsPascalUnit(AnUnitInfo.Filename) then exit;
|
||||||
|
|
||||||
AnUnitInfo.LoadingComponent:=true;
|
AnUnitInfo.LoadingComponent:=true;
|
||||||
try
|
try
|
||||||
// search component lfm
|
// search component lfm
|
||||||
|
Loading…
Reference in New Issue
Block a user