1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Introjucer: now ignores spurious OSX command-line arguments

This commit is contained in:
jules 2015-10-29 17:03:37 +00:00 committed by Joshua Gerrard
parent 9f4265a5d9
commit 52f7a9c0f4

View file

@ -116,7 +116,9 @@ public:
virtual void initialiseWindows (const String& commandLine)
{
if (commandLine.trim().isNotEmpty() && ! commandLine.trim().startsWithChar ('-'))
const String commandLineWithoutNSDebug (commandLine.replace ("-NSDocumentRevisionsDebugMode YES", ""));
if (commandLineWithoutNSDebug.trim().isNotEmpty() && ! commandLineWithoutNSDebug.trim().startsWithChar ('-'))
anotherInstanceStarted (commandLine);
else
mainWindowList.reopenLastProjects();