From 7e9f955a589b3b92c55db70410a85192e00e5e40 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 13 Oct 2021 09:56:52 +0200 Subject: [PATCH] Docker: Use only path part of FilePath when mapping to device Otherwise neither normalizedPathName nor startsWithDriveLetter works as intended when used with a non local path, but these are required to take the correct code path in FilePath::mapToDevicePath. Change-Id: I25e8f1a6a01a3e4056633ff3afec883cfbeb0e46 Reviewed-by: hjk --- src/plugins/docker/dockerdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 65e3598e605..eaf27690e6c 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -1066,7 +1066,7 @@ QString DockerDevice::mapToDevicePath(const Utils::FilePath &globalPath) const { // make sure to convert windows style paths to unix style paths with the file system case: // C:/dev/src -> /c/dev/src - const FilePath normalized = globalPath.normalizedPathName(); + const FilePath normalized = FilePath::fromString(globalPath.path()).normalizedPathName(); QString path = normalized.path(); if (normalized.startsWithDriveLetter()) { const QChar lowerDriveLetter = path.at(0).toLower();