forked from qt-creator/qt-creator
Docker: Fix and enable open shell in container
So far this had been restricted to Unix, but it works on all platforms. Change-Id: I578623341c906eca80a0dbc5fcc9b15e820d3597 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -551,11 +551,9 @@ DockerDevice::DockerDevice(const DockerDeviceData &data)
|
|||||||
proc->start();
|
proc->start();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (HostOsInfo::isAnyUnixHost()) {
|
addDeviceAction({tr("Open Shell in Container"), [](const IDevice::Ptr &device, QWidget *) {
|
||||||
addDeviceAction({tr("Open Shell in Container"), [this](const IDevice::Ptr &device, QWidget *) {
|
device->openTerminal(device->systemEnvironment(), FilePath());
|
||||||
device->openTerminal(Environment(), FilePath());
|
}});
|
||||||
}});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DockerDevice::~DockerDevice()
|
DockerDevice::~DockerDevice()
|
||||||
|
Reference in New Issue
Block a user