summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-03-18 11:49:31 +0100
committerChristian Stenger <christian.stenger@qt.io>2022-03-18 14:39:30 +0000
commit7012aa621c1299d03a9946ffcd8e503e7fa7bcc4 (patch)
tree06b9e4f8d466ef339d228d19411f3543e40b5517
parent48c3a022295aea6d7346e6d594aea0b9369b898b (diff)
downloadqt-creator-7012aa621c1299d03a9946ffcd8e503e7fa7bcc4.tar.gz
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>
-rw-r--r--src/plugins/remotelinux/linuxdevice.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp
index 4a60f6ae80..0d2f44f070 100644
--- a/src/plugins/remotelinux/linuxdevice.cpp
+++ b/src/plugins/remotelinux/linuxdevice.cpp
@@ -347,11 +347,9 @@ LinuxDevice::LinuxDevice()
proc->start(runnable);
});
- if (Utils::HostOsInfo::isAnyUnixHost()) {
- addDeviceAction({tr("Open Remote Shell"), [](const IDevice::Ptr &device, QWidget *) {
- device->openTerminal(Environment(), FilePath());
- }});
- }
+ addDeviceAction({tr("Open Remote Shell"), [](const IDevice::Ptr &device, QWidget *) {
+ device->openTerminal(Environment(), FilePath());
+ }});
}
LinuxDevice::~LinuxDevice()