forked from qt-creator/qt-creator
ProjectExplorer: Normalize DeviceProcess::start() signature
Change-Id: I2915be34d4a1eed64567874dcf0263b7583cc142 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user