diff --git a/components/codetools/ide/codyidentifiersdlg.pas b/components/codetools/ide/codyidentifiersdlg.pas index 8c79acc5ee..045ee15d0e 100644 --- a/components/codetools/ide/codyidentifiersdlg.pas +++ b/components/codetools/ide/codyidentifiersdlg.pas @@ -396,7 +396,7 @@ var begin if not IsApplicable(Msg,Identifier) then exit; if LazarusIDE.DoOpenFileAndJumpToPos(Msg.GetFullFilename, - Point(Msg.Column,Msg.Line),-1,-1,-1,[])<>mrOk then exit; + Point(Msg.Column,Msg.Line),-1,-1,-1,[ofOnlyIfExists,ofRegularFile])<>mrOk then exit; ShowUnitDictionaryDialog(nil); end;