From 93ca1a87a58245ac34af19b3ce62da9286ec53f1 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 1 Jun 2021 14:15:06 +0200 Subject: [PATCH] Utils: Somewhat improve remote FilePath::canonicalPath() At least keep the remoteness. Change-Id: I80c865d7b5c7d2dbca6ea6c4c269ef144a7d144c Reviewed-by: David Schulz --- src/libs/utils/fileutils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/utils/fileutils.cpp b/src/libs/utils/fileutils.cpp index 34ecb6d58a8..647318a2e52 100644 --- a/src/libs/utils/fileutils.cpp +++ b/src/libs/utils/fileutils.cpp @@ -254,6 +254,10 @@ FilePath FileUtils::resolveSymlinks(const FilePath &path) */ FilePath FilePath::canonicalPath() const { + if (needsDevice()) { + // FIXME: Not a full solution, but it stays on the right device. + return *this; + } const QString result = toFileInfo().canonicalFilePath(); if (result.isEmpty()) return *this;