diff --git a/src/game/game.cpp b/src/game/game.cpp index c34e9aaf614b3d9c519bfaae8a31f046e080c2dc..5443f144f4cbc96cede044d08d3e97d7e69545d0 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -69,7 +69,15 @@ Game::~Game() bool Game::start(const QString &command) { stop(); // Close old session if there's one +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + QStringList splitArguments = QProcess::splitCommand(command); + if (!splitArguments.isEmpty()) { + const QString prog = splitArguments.takeFirst(); + m_process.start(prog, splitArguments); + } +#else m_process.start(command, QStringList()); // Start new process with provided command +#endif if (!m_process.waitForStarted()) { // Blocking wait for process start m_response = QLatin1String("Unable to execute command: ") + command; //qCDebug(KIGO_LOG) << m_response;