This commit is contained in:
Martin Rotter 2021-05-24 07:50:36 +02:00
parent a34d978ca0
commit 239a0d2f7e

View file

@ -374,7 +374,12 @@ void Application::parseCmdArgumentsFromOtherInstance(const QString& message) {
<< QUOTE_W_SPACE(message) << QUOTE_W_SPACE(message)
<< "execution message."; << "execution message.";
#if QT_VERSION >= 0x050F00 // Qt >= 5.15.0
QStringList messages = message.split(ARGUMENTS_LIST_SEPARATOR, Qt::SplitBehaviorFlags::SkipEmptyParts); QStringList messages = message.split(ARGUMENTS_LIST_SEPARATOR, Qt::SplitBehaviorFlags::SkipEmptyParts);
#else
QStringList messages = message.split(ARGUMENTS_LIST_SEPARATOR, QString::SplitBehaviorFlags::SkipEmptyParts);
#endif
QCommandLineParser cmd_parser; QCommandLineParser cmd_parser;
messages.prepend(qApp->applicationFilePath()); messages.prepend(qApp->applicationFilePath());