forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::FileName for Runnable::executable
Change-Id: I584bc18aa19a4c9886af7b13e95052dfd4350b34 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -106,10 +106,10 @@ void PerfTracePointDialog::runScript()
|
||||
Runnable runnable;
|
||||
const QString elevate = m_ui->privilegesChooser->currentText();
|
||||
if (elevate != QLatin1String("n.a.")) {
|
||||
runnable.executable = elevate;
|
||||
runnable.executable = Utils::FileName::fromString(elevate);
|
||||
runnable.commandLineArguments = "sh";
|
||||
} else {
|
||||
runnable.executable = "sh";
|
||||
runnable.executable = Utils::FileName::fromString("sh");
|
||||
}
|
||||
|
||||
connect(m_process.get(), &DeviceProcess::started,
|
||||
|
||||
Reference in New Issue
Block a user