Fix run control startup message for remote targets on Windows

The exectuable path in the user output was always converted to native
separators, even for non-Desktop targets.

Change-Id: I5b43b2da8a2b791472a1fd58940b179dcbaa28d0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2017-10-16 17:01:06 +02:00
parent 19203ebbf7
commit 63a472a81a
2 changed files with 10 additions and 4 deletions

View File

@@ -1409,10 +1409,15 @@ void SimpleTargetRunner::start()
m_stopReported = false;
m_launcher.disconnect(this);
QString msg = RunControl::tr("Starting %1...").arg(m_runnable.displayName());
const bool isDesktop = isSynchronousLauncher(runControl());
const QString rawDisplayName = m_runnable.displayName();
const QString displayName = isDesktop
? QDir::toNativeSeparators(rawDisplayName)
: rawDisplayName;
const QString msg = RunControl::tr("Starting %1...").arg(displayName);
appendMessage(msg, Utils::NormalMessageFormat);
if (isSynchronousLauncher(runControl())) {
if (isDesktop) {
connect(&m_launcher, &ApplicationLauncher::appendMessage,
this, &SimpleTargetRunner::appendMessage);