mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:49:14 +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;
|
||||
end;
|
||||
|
||||
// For example .lfm file open in editor
|
||||
if not FilenameIsPascalUnit(AnUnitInfo.Filename) then exit;
|
||||
|
||||
AnUnitInfo.LoadingComponent:=true;
|
||||
try
|
||||
// search component lfm
|
||||
|
Loading…
Reference in New Issue
Block a user