diff --git a/src/plugins/qt4projectmanager/externaleditors.cpp b/src/plugins/qt4projectmanager/externaleditors.cpp index d79f6f2b930..bbe6fd356d4 100644 --- a/src/plugins/qt4projectmanager/externaleditors.cpp +++ b/src/plugins/qt4projectmanager/externaleditors.cpp @@ -79,15 +79,15 @@ static inline QString msgAppNotFound(const QString &id) static const char * const linguistBinaryC = "Linguist"; static const char * const designerBinaryC = "Designer"; -// Mac: Change the call 'Foo.app/Contents/MacOS/Foo ' to -// 'open Foo.app '. Do this ONLY if you do not want to have -// command line arguments +// Mac: Change the call 'Foo.app/Contents/MacOS/Foo ' to +// 'open -a Foo.app '. doesn't support generic command line arguments static void createMacOpenCommand(QString *binary, QStringList *arguments) { const int appFolderIndex = binary->lastIndexOf(QLatin1String("/Contents/MacOS/")); if (appFolderIndex != -1) { binary->truncate(appFolderIndex); arguments->push_front(*binary); + arguments->push_front(QLatin1String("-a")); *binary = QLatin1String("open"); } }