Skip to content
Snippets Groups Projects
Commit a89c171c authored by kh1's avatar kh1
Browse files

Use the full path to the qemu executable, might fix QTCREATORBUG-1656.

Task-number: QTCREATORBUG-1656
parent cfdb5d74
No related branches found
No related tags found
No related merge requests found
...@@ -379,9 +379,9 @@ void QemuRuntimeManager::startRuntime() ...@@ -379,9 +379,9 @@ void QemuRuntimeManager::startRuntime()
m_qemuProcess->setProcessEnvironment(env); m_qemuProcess->setProcessEnvironment(env);
m_qemuProcess->setWorkingDirectory(rt.m_root); m_qemuProcess->setWorkingDirectory(rt.m_root);
const QString app =(QFileInfo(rt.m_bin).isRelative() const QString app = root + (QFileInfo(rt.m_bin).isRelative()
? root % QLatin1String("madlib/") % rt.m_bin // Fremantle. ? QLatin1String("madlib/") % rt.m_bin // Fremantle.
: rt.m_bin) // Haramattan. : rt.m_bin) // Haramattan.
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
% QLatin1String(".exe") % QLatin1String(".exe")
#endif #endif
...@@ -389,6 +389,9 @@ void QemuRuntimeManager::startRuntime() ...@@ -389,6 +389,9 @@ void QemuRuntimeManager::startRuntime()
m_qemuProcess->start(app % QLatin1Char(' ') % rt.m_args, m_qemuProcess->start(app % QLatin1Char(' ') % rt.m_args,
QIODevice::ReadWrite); QIODevice::ReadWrite);
if (!m_qemuProcess->waitForStarted())
return;
emit qemuProcessStatus(QemuStarting); emit qemuProcessStatus(QemuStarting);
connect(m_qemuAction, SIGNAL(triggered()), this, SLOT(terminateRuntime())); connect(m_qemuAction, SIGNAL(triggered()), this, SLOT(terminateRuntime()));
disconnect(m_qemuAction, SIGNAL(triggered()), this, SLOT(startRuntime())); disconnect(m_qemuAction, SIGNAL(triggered()), this, SLOT(startRuntime()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment