1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MacOS: Escaped " in the command line passed to anotherInstanceStarted

This commit is contained in:
Tom Poole 2019-02-11 13:58:29 +00:00
parent 368d6bb178
commit bd07014dcc

View file

@ -235,8 +235,10 @@ private:
static String quotedIfContainsSpaces (NSString* file)
{
String s (nsStringToJuce (file));
s = s.unquoted().replace ("\"", "\\\"");
if (s.containsChar (' '))
s = s.quoted ('"');
s = s.quoted();
return s;
}