IDE: DoOpenFileAndJumpToPos: do not open project

git-svn-id: trunk@53213 -
This commit is contained in:
mattias 2016-10-26 07:45:23 +00:00
parent 85e2468d35
commit c7f7b34cac

View File

@ -6101,7 +6101,7 @@ var
ActiveSrcEdit, OldActiveSrcEdit: TSourceEditor;
begin
GetCurrentUnit(OldActiveSrcEdit,OldActiveUnitInfo);
Result:=DoOpenEditorFile(AFilename, PageIndex, WindowIndex, Flags);
Result:=DoOpenEditorFile(AFilename, PageIndex, WindowIndex, Flags+[ofRegularFile]);
if Result<>mrOk then exit;
GetCurrentUnit(ActiveSrcEdit,ActiveUnitInfo);
if ActiveUnitInfo<>nil then begin