aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/terminalhooks.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-03-29 13:45:42 +0200
committerhjk <[email protected]>2023-04-04 06:56:55 +0000
commit305ccfe259d44a5828b6a770ea90d7c9e189120a (patch)
tree6386b129b368c993491f46f7073556606bb7f7e7 /src/libs/utils/terminalhooks.cpp
parent9956740905ee16eff22f75b5d6c6a85c266fba0a (diff)
Utils: Replace FilePath::onDevice() by new FilePath::withMappedPath()
Basically a.onDevice(b) == b.withNewMappedPath(a), matching the order of b.withNewPath(a). Whether the (curretly docker-specific) path mapping is useful /there/, and whether some of the calls are needed at all is dubious. I added some FIXME and changed a few cases directly. Change-Id: I7514736ce922f632f1f737bc496f6783389a42b6 Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalhooks.cpp')
-rw-r--r--src/libs/utils/terminalhooks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/terminalhooks.cpp b/src/libs/utils/terminalhooks.cpp
index 6922f5c4304..d8e53010c30 100644
--- a/src/libs/utils/terminalhooks.cpp
+++ b/src/libs/utils/terminalhooks.cpp
@@ -27,7 +27,7 @@ FilePath defaultShellForDevice(const FilePath &deviceRoot)
if (shell.isEmpty())
return shell;
- return shell.onDevice(deviceRoot);
+ return deviceRoot.withNewMappedPath(shell);
}
class ExternalTerminalProcessImpl final : public TerminalInterface