mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 14:32:38 +02:00
IDE: view unit/form dialog: fixed ImagIndex
git-svn-id: trunk@50649 -
This commit is contained in:
parent
c45aa54c62
commit
a6dc707e3e
@ -49,6 +49,7 @@ uses
|
||||
|
||||
type
|
||||
TIDEProjectItem = (
|
||||
piNone,
|
||||
piUnit,
|
||||
piComponent,
|
||||
piFrame
|
||||
@ -363,21 +364,19 @@ procedure TViewUnitDialog.OnIdle(Sender: TObject; var Done: Boolean);
|
||||
case ItemType of
|
||||
piUnit:
|
||||
begin
|
||||
fFoundFiles[aFilename]:=ExtractFileName(aFilename);
|
||||
end;
|
||||
piComponent:
|
||||
begin
|
||||
CompClass:=FindLFMBaseClass(aFilename);
|
||||
if CompClass=pfcbcNone then exit;
|
||||
fFoundFiles[aFilename]:=ExtractFileName(aFilename);
|
||||
end;
|
||||
piFrame:
|
||||
begin
|
||||
CompClass:=FindLFMBaseClass(aFilename);
|
||||
if CompClass<>pfcbcFrame then exit;
|
||||
fFoundFiles[aFilename]:=ExtractFileName(aFilename);
|
||||
end;
|
||||
end;
|
||||
fFoundFiles[aFilename]:=ExtractFileName(aFilename);
|
||||
end;
|
||||
|
||||
procedure CheckDirectory(aDirectory: string);
|
||||
|
Loading…
Reference in New Issue
Block a user