project groups: run Pascal file without opening in source editor

git-svn-id: trunk@50445 -
This commit is contained in:
mattias 2015-11-20 14:38:57 +00:00
parent d6b6f6739e
commit be79f48411

View File

@ -1418,9 +1418,7 @@ begin
taRun:
begin
if not CheckIDEIsReadyForBuild then exit;
if LazarusIDE.DoOpenEditorFile(Filename,-1,-1,[ofAddToRecent,ofRegularFile])<>mrOK then
exit;
if LazarusIDE.DoRunFile<>mrOK then
if LazarusIDE.DoRunFile(Filename)<>mrOK then
exit;
Result:=arOK;
end;