forked from qt-creator/qt-creator
Utils: Fix starting process without executable
SSH devices will try to open a shell without setting a specific shell executable. To allow this, we also need to check if scheme and host are empty. Change-Id: Ia11a1f2fe43168798b120b2991094f2d117e4861 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1152,7 +1152,9 @@ void Process::start()
|
|||||||
"lead to crash! Consider calling close() prior to direct restart."));
|
"lead to crash! Consider calling close() prior to direct restart."));
|
||||||
d->clearForRun();
|
d->clearForRun();
|
||||||
|
|
||||||
if (d->m_setup.m_commandLine.executable().isEmpty()) {
|
if (d->m_setup.m_commandLine.executable().isEmpty()
|
||||||
|
&& d->m_setup.m_commandLine.executable().scheme().isEmpty()
|
||||||
|
&& d->m_setup.m_commandLine.executable().host().isEmpty()) {
|
||||||
d->m_result = ProcessResult::StartFailed;
|
d->m_result = ProcessResult::StartFailed;
|
||||||
d->m_resultData.m_exitCode = 255;
|
d->m_resultData.m_exitCode = 255;
|
||||||
d->m_resultData.m_exitStatus = QProcess::CrashExit;
|
d->m_resultData.m_exitStatus = QProcess::CrashExit;
|
||||||
|
Reference in New Issue
Block a user