forked from qt-creator/qt-creator
RemoteLinux: Reuse StringUtils::joinStrings()
Change-Id: I5be99df99a4b3952374b9f3b719d032d897b691c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -640,11 +640,8 @@ void LinuxProcessInterface::handleDone(const ProcessResultData &resultData)
|
|||||||
ProcessResultData finalData = resultData;
|
ProcessResultData finalData = resultData;
|
||||||
if (!m_pidParsed) {
|
if (!m_pidParsed) {
|
||||||
finalData.m_error = QProcess::FailedToStart;
|
finalData.m_error = QProcess::FailedToStart;
|
||||||
if (!m_error.isEmpty()) {
|
finalData.m_errorString = Utils::joinStrings({finalData.m_errorString,
|
||||||
if (!finalData.m_errorString.isEmpty())
|
QString::fromLocal8Bit(m_error)}, '\n');
|
||||||
finalData.m_errorString += "\n";
|
|
||||||
finalData.m_errorString += QString::fromLocal8Bit(m_error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
emit done(finalData);
|
emit done(finalData);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user