From e3b8d6813a5a050b870c956b648cdee01b75a37a Mon Sep 17 00:00:00 2001 From: dmitry Date: Sat, 28 Apr 2018 02:17:37 +0000 Subject: [PATCH] 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 - --- ide/buildmanager.pas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ide/buildmanager.pas b/ide/buildmanager.pas index f5163293c5..d1fdfd100e 100644 --- a/ide/buildmanager.pas +++ b/ide/buildmanager.pas @@ -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;