RemoteLinux: Allow open remote shell from Windows as well

Was originally restricted to UNIX hosts, but works for Windows
as well.

Change-Id: I233ec73760134256723a927de5e9e6cc9aefa8ac
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2022-03-18 11:49:31 +01:00
parent 48c3a02229
commit 7012aa621c

View File

@@ -347,12 +347,10 @@ LinuxDevice::LinuxDevice()
proc->start(runnable); proc->start(runnable);
}); });
if (Utils::HostOsInfo::isAnyUnixHost()) {
addDeviceAction({tr("Open Remote Shell"), [](const IDevice::Ptr &device, QWidget *) { addDeviceAction({tr("Open Remote Shell"), [](const IDevice::Ptr &device, QWidget *) {
device->openTerminal(Environment(), FilePath()); device->openTerminal(Environment(), FilePath());
}}); }});
} }
}
LinuxDevice::~LinuxDevice() LinuxDevice::~LinuxDevice()
{ {