diff options
author | hjk <hjk@qt.io> | 2017-04-13 09:01:54 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-04-21 10:36:15 +0000 |
commit | 230524da162ae2ab101715172a6c553f56e51b60 (patch) | |
tree | b56e588371d0e1f1ae6d29bc76fdda88467aacda /src/plugins/remotelinux | |
parent | d87afd4b89b568c2b4545180c04181a1ebf32377 (diff) | |
download | qt-creator-230524da162ae2ab101715172a6c553f56e51b60.tar.gz |
ProjectExplorer: Dissolve SimpleRunControl
As planned.
Change-Id: I9d9349cdd174c47b2331095fbe545b811e6ca770
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/remotelinux')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxruncontrolfactory.cpp | 7 |
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); |