From b39010af791c8c955b434ed3a78fe34604b344f3 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 10 Jan 2023 15:19:27 +0100 Subject: [PATCH] Utils: Allow FilePath::onDevice for local paths Change-Id: I1ae62e077382abddbb32327897e87331cfc02476 Reviewed-by: hjk --- src/libs/utils/filepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index c70848955f6..34b7c3d0af1 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -1210,7 +1210,7 @@ FilePath FilePath::onDevice(const FilePath &deviceTemplate) const if (sameDevice) return *this; // TODO: converting paths between different non local devices is still unsupported - QTC_CHECK(!needsDevice()); + QTC_CHECK(!needsDevice() || !deviceTemplate.needsDevice()); return fromParts(deviceTemplate.scheme(), deviceTemplate.host(), deviceTemplate.fileAccess()->mapToDevicePath(path()));