From 49e7ca0fa04878db2a5c6351a5e42f347b7a4af0 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sat, 11 Apr 2020 10:25:19 +0800 Subject: [PATCH] turn on -m by default on macOS --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 496ee1a3..b55a1516 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -120,7 +120,11 @@ void VLogger(QtMsgType type, const QMessageLogContext &context, const QString &m int main(int argc, char *argv[]) { +#if defined(Q_OS_MACOS) || defined(Q_OS_MAC) + bool allowMultiInstances = true; +#else bool allowMultiInstances = false; +#endif for (int i = 1; i < argc; ++i) { if (!qstrcmp(argv[i], "-m")) { allowMultiInstances = true;