forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnable
Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -101,12 +101,10 @@ void PerfTracePointDialog::runScript()
|
||||
|
||||
Runnable runnable;
|
||||
const QString elevate = m_ui->privilegesChooser->currentText();
|
||||
if (elevate != QLatin1String("n.a.")) {
|
||||
runnable.executable = Utils::FilePath::fromString(elevate);
|
||||
runnable.commandLineArguments = "sh";
|
||||
} else {
|
||||
runnable.executable = Utils::FilePath::fromString("sh");
|
||||
}
|
||||
if (elevate != QLatin1String("n.a."))
|
||||
runnable.command = {elevate, {"sh"}};
|
||||
else
|
||||
runnable.command = {"sh", {}};
|
||||
|
||||
connect(m_process.get(), &DeviceProcess::started,
|
||||
this, &PerfTracePointDialog::feedScriptToProcess);
|
||||
|
||||
Reference in New Issue
Block a user