mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 05:56:16 +02:00
IDE: improvements to Use Unit dialog, issue #20743
git-svn-id: trunk@34058 -
This commit is contained in:
parent
09d427d902
commit
8d490675de
@ -354,9 +354,9 @@ begin
|
||||
with UnitsListBox do
|
||||
if ItemIndex >= 0 then
|
||||
begin
|
||||
IdentItem := TIdentifierListItem(Items.Objects[ItemIndex]);
|
||||
if Assigned(IdentItem) then
|
||||
if Items.Objects[ItemIndex] is TIdentifierListItem then
|
||||
begin
|
||||
IdentItem := TIdentifierListItem(Items.Objects[ItemIndex]);
|
||||
Result := IdentItem.Identifier;
|
||||
CodeBuf := CodeToolBoss.FindUnitSource(SourceEditorManager.ActiveEditor.CodeBuffer, Result, '');
|
||||
if Assigned(CodeBuf) then
|
||||
|
Loading…
Reference in New Issue
Block a user