summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp')
-rw-r--r--src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp b/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp
index 79e6f0ff6c..1e616373db 100644
--- a/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp
+++ b/src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp
@@ -79,8 +79,11 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Co
{
QTC_ASSERT(canRun(runConfig, mode), return 0);
- if (mode == ProjectExplorer::Constants::NORMAL_RUN_MODE)
- return new SimpleRunControl(runConfig, mode);
+ if (mode == ProjectExplorer::Constants::NORMAL_RUN_MODE) {
+ auto runControl = new RunControl(runConfig, mode);
+ (void) new SimpleTargetRunner(runControl);
+ return runControl;
+ }
const auto rcRunnable = runConfig->runnable();
QTC_ASSERT(rcRunnable.is<StandardRunnable>(), return 0);