From f5c255e04cef691ec74e4f7f0e56771704d95668 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 9 May 2022 14:04:43 +0200 Subject: [PATCH] ProjectExplorer: Fix exit messages Amends f9800e5a26d. Change-Id: I81ddf68d680acc9ae892c0391faa3f493250aceb Reviewed-by: Jarek Kobus --- src/plugins/projectexplorer/runcontrol.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index cbceea2e0d7..93455e86566 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -1223,9 +1223,10 @@ void SimpleTargetRunner::doStart(const Runnable &runnable) connect(&m_launcher, &ApplicationLauncher::done, this, [this, runnable] { if (m_stopReported) return; - QString msg = tr("%2 exited with code %1").arg(m_launcher.exitCode()); + const QString executable = runnable.command.executable().toUserOutput(); + QString msg = tr("%2 exited with code %1").arg(m_launcher.exitCode()).arg(executable); if (m_launcher.exitStatus() == QProcess::CrashExit) - msg = tr("%1 crashed."); + msg = tr("%1 crashed.").arg(executable); else if (m_stopForced) msg = tr("The process was ended forcefully."); else if (m_launcher.error() != QProcess::UnknownError)