forked from qt-creator/qt-creator
ProjectExplorer: Prevent redundant output on process crash
... in run controls. Fixes: QTCREATORBUG-26049 Change-Id: I51e560fb4674e2b8ac59cb1901d269d8179213d7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1233,8 +1233,11 @@ void SimpleTargetRunner::doStart(const Runnable &runnable, const IDevice::ConstP
|
||||
this, [this, runnable](QProcess::ProcessError error) {
|
||||
if (error == QProcess::Timedout)
|
||||
return; // No actual change on the process side.
|
||||
const QString msg = userMessageForProcessError(error, runnable.command.executable());
|
||||
appendMessage(msg, Utils::NormalMessageFormat);
|
||||
if (error != QProcess::Crashed) {
|
||||
const QString msg = userMessageForProcessError(
|
||||
error, runnable.command.executable());
|
||||
appendMessage(msg, Utils::NormalMessageFormat);
|
||||
}
|
||||
if (!m_stopReported) {
|
||||
m_stopReported = true;
|
||||
reportStopped();
|
||||
|
||||
Reference in New Issue
Block a user