forked from qt-creator/qt-creator
Utils/ProjectExplorer: Use FilePath for Runnable::workingDirectory
... and in some using code. Change-Id: I231ea56628908f7d305d13f07eabe8803fe8a791 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -189,7 +189,7 @@ LinuxDevice::LinuxDevice()
|
||||
}
|
||||
}});
|
||||
|
||||
setOpenTerminal([this](const Utils::Environment &env, const QString &workingDir) {
|
||||
setOpenTerminal([this](const Environment &env, const FilePath &workingDir) {
|
||||
DeviceProcess * const proc = createProcess(nullptr);
|
||||
QObject::connect(proc, &DeviceProcess::finished, [proc] {
|
||||
if (!proc->errorString().isEmpty()) {
|
||||
@@ -218,7 +218,7 @@ LinuxDevice::LinuxDevice()
|
||||
|
||||
if (Utils::HostOsInfo::isAnyUnixHost()) {
|
||||
addDeviceAction({tr("Open Remote Shell"), [](const IDevice::Ptr &device, QWidget *) {
|
||||
device->openTerminal(Utils::Environment(), QString());
|
||||
device->openTerminal(Environment(), FilePath());
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user