summaryrefslogtreecommitdiff
path: root/src/plugins/perfprofiler/perftracepointdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perfprofiler/perftracepointdialog.cpp')
-rw-r--r--src/plugins/perfprofiler/perftracepointdialog.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/perfprofiler/perftracepointdialog.cpp b/src/plugins/perfprofiler/perftracepointdialog.cpp
index 3bb2197ea5..6b3d46cf7e 100644
--- a/src/plugins/perfprofiler/perftracepointdialog.cpp
+++ b/src/plugins/perfprofiler/perftracepointdialog.cpp
@@ -100,12 +100,11 @@ void PerfTracePointDialog::runScript()
m_process.reset(m_device->createProcess(this));
- Runnable runnable;
const QString elevate = m_ui->privilegesChooser->currentText();
if (elevate != QLatin1String("n.a."))
- runnable.command = {FilePath::fromString(elevate), {"sh"}};
+ m_process->setCommand({FilePath::fromString(elevate), {"sh"}});
else
- runnable.command = {"sh", {}};
+ m_process->setCommand({"sh", {}});
connect(m_process.get(), &DeviceProcess::started,
this, &PerfTracePointDialog::feedScriptToProcess);
@@ -116,7 +115,7 @@ void PerfTracePointDialog::runScript()
connect(m_process.get(), &DeviceProcess::errorOccurred,
this, &PerfTracePointDialog::handleProcessError);
- m_process->start(runnable);
+ m_process->start();
}
void PerfTracePointDialog::feedScriptToProcess()