ide: mitigate the requirements of having an ActiveMode selected for RunOptions, in order to determine if project is a macOS bundle application. #32888, #33634, #33627

git-svn-id: trunk@57735 -
This commit is contained in:
dmitry 2018-04-28 02:17:37 +00:00
parent f84ad3c0b2
commit e3b8d6813a

View File

@ -718,8 +718,9 @@ end;
function TBuildManager.GetProjectUsesAppBundle: Boolean;
begin
Result := (Project1<>nil) and (Project1.RunParameterOptions.GetActiveMode<>nil)
and (Project1.RunParameterOptions.GetActiveMode.HostApplicationFilename = '')
Result := (Project1<>nil)
and ( (Project1.RunParameterOptions.GetActiveMode=nil)
or (Project1.RunParameterOptions.GetActiveMode.HostApplicationFilename = ''))
and (GetTargetOS = 'darwin') and Project1.UseAppBundle;
end;