Utils: Fix DeviceShell error handling

Change-Id: I5e519ffa9672841d84e565ea5fd222d21ca354bd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-09-14 14:05:09 +02:00
parent 26b436f46f
commit 85f00b243f

View File

@@ -214,7 +214,8 @@ bool DeviceShell::start()
m_shellProcess->kill(); m_shellProcess->kill();
m_shellProcess.reset(); m_shellProcess.reset();
return false; return false;
} } else
return false;
connect(m_shellProcess.get(), &Process::done, m_shellProcess.get(), [this] { connect(m_shellProcess.get(), &Process::done, m_shellProcess.get(), [this] {
if (m_shellProcess->resultData().m_exitCode != EXIT_SUCCESS if (m_shellProcess->resultData().m_exitCode != EXIT_SUCCESS