From 6a06901d8f02fbdb40fd6305c0573801beba3989 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 10 Sep 2024 14:12:52 +0200 Subject: [PATCH] Utils: Remove toFSPathString from FilePath::createTempFile QTemporaryFile only works with local files. Change-Id: Iafa8c252e7b3cc2d00f6a3cef33823db4ac4808a Reviewed-by: hjk Reviewed-by: Andrii Semkiv --- 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 3f731a46bdc..fd1ddc8667b 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -600,7 +600,7 @@ expected_str FilePath::tmpDir() const expected_str FilePath::createTempFile() const { if (!needsDevice()) { - QTemporaryFile file(toFSPathString()); + QTemporaryFile file(path()); file.setAutoRemove(false); if (file.open()) return FilePath::fromString(file.fileName());