forked from qt-creator/qt-creator
ProjectExplorer: Replace some uses of Runnable::device
Change-Id: I76ccbe9a56b9ecdc07fc85885b34f2a31c69fc07 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1399,7 +1399,7 @@ void SimpleTargetRunnerPrivate::handleStandardError()
|
||||
|
||||
void SimpleTargetRunnerPrivate::start()
|
||||
{
|
||||
m_isLocal = m_runnable.device.isNull() || m_runnable.device.dynamicCast<const DesktopDevice>();
|
||||
m_isLocal = !m_runnable.command.executable().needsDevice();
|
||||
|
||||
m_resultData = {};
|
||||
|
||||
@@ -1501,8 +1501,7 @@ void SimpleTargetRunnerPrivate::forwardDone()
|
||||
|
||||
void SimpleTargetRunnerPrivate::forwardStarted()
|
||||
{
|
||||
const bool isDesktop = m_runnable.device.isNull()
|
||||
|| m_runnable.device.dynamicCast<const DesktopDevice>();
|
||||
const bool isDesktop = !m_runnable.command.executable().needsDevice();
|
||||
if (isDesktop) {
|
||||
// Console processes only know their pid after being started
|
||||
ProcessHandle pid{privateApplicationPID()};
|
||||
@@ -1536,10 +1535,9 @@ void SimpleTargetRunner::start()
|
||||
d->m_runAsRoot = runAsRoot;
|
||||
|
||||
const QString msg = RunControl::tr("Starting %1...").arg(d->m_runnable.command.toUserOutput());
|
||||
appendMessage(msg, Utils::NormalMessageFormat);
|
||||
appendMessage(msg, NormalMessageFormat);
|
||||
|
||||
const bool isDesktop = d->m_runnable.device.isNull()
|
||||
|| d->m_runnable.device.dynamicCast<const DesktopDevice>();
|
||||
const bool isDesktop = !d->m_runnable.command.executable().needsDevice();
|
||||
if (isDesktop && d->m_runnable.command.isEmpty()) {
|
||||
reportFailure(RunControl::tr("No executable specified."));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user