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());