From 52f7a9c0f48778f82db4449e857cb24efa692798 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 29 Oct 2015 17:03:37 +0000 Subject: [PATCH] Introjucer: now ignores spurious OSX command-line arguments --- extras/Introjucer/Source/Application/jucer_Application.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/Introjucer/Source/Application/jucer_Application.h b/extras/Introjucer/Source/Application/jucer_Application.h index dc300a02ef..7a2fe9f9ed 100644 --- a/extras/Introjucer/Source/Application/jucer_Application.h +++ b/extras/Introjucer/Source/Application/jucer_Application.h @@ -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();