Commit 5973484d authored by hjk's avatar hjk

RemoteLinux: Remove RemoteLinuxRunControlPrivate::device

The base RunControl has now a copy of its own.

Change-Id: Ic830015603975891ef96335518f39b4cf032f29f
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 9d40a1d9
......@@ -26,10 +26,8 @@
#include "remotelinuxruncontrol.h"
#include <projectexplorer/devicesupport/deviceapplicationrunner.h>
#include <projectexplorer/kitinformation.h>
#include <projectexplorer/projectexplorericons.h>
#include <projectexplorer/runnables.h>
#include <projectexplorer/target.h>
using namespace ProjectExplorer;
......@@ -40,7 +38,6 @@ class RemoteLinuxRunControl::RemoteLinuxRunControlPrivate
public:
bool running;
DeviceApplicationRunner runner;
IDevice::ConstPtr device;
StandardRunnable runnable;
};
......@@ -51,7 +48,6 @@ RemoteLinuxRunControl::RemoteLinuxRunControl(RunConfiguration *rc)
d->running = false;
d->runnable = rc->runnable().as<StandardRunnable>();
d->device = DeviceKitInformation::device(rc->target()->kit());
}
RemoteLinuxRunControl::~RemoteLinuxRunControl()
......@@ -74,7 +70,7 @@ void RemoteLinuxRunControl::start()
this, &RemoteLinuxRunControl::handleRunnerFinished);
connect(&d->runner, &DeviceApplicationRunner::reportProgress,
this, &RemoteLinuxRunControl::handleProgressReport);
d->runner.start(d->device, d->runnable);
d->runner.start(device(), d->runnable);
}
RunControl::StopResult RemoteLinuxRunControl::stop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment