Commit 2ce84e64 authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 420814 kigo is not executing the go engine correctly

BUG: 420814
FIXED-IN: 20.04.1
parent 3a76b6fe
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment