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:
Juha 2023-07-22 10:49:38 +03:00
parent 31bbbe6b1e
commit 4ed8ff9b1c

View File

@ -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