diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index a358df38f3b..f90a8fd48c0 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -1554,4 +1554,10 @@ CommandLine Runnable::commandLine() const return CommandLine(FilePath::fromString(executable), commandLineArguments); } +void Runnable::setCommandLine(const CommandLine &cmdLine) +{ + executable = cmdLine.executable().toString(); + commandLineArguments = cmdLine.arguments(); +} + } // namespace ProjectExplorer diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index 040520991d0..fbb1c151ff1 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -74,6 +74,7 @@ public: Runnable() = default; Utils::CommandLine commandLine() const; + void setCommandLine(const Utils::CommandLine &cmdLine); QString executable; QString commandLineArguments;