diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 38ef61ef264..bcbb5d4b409 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -889,12 +889,7 @@ public: bool headerFileExists = std::filesystem::exists(headerFile); - std::filesystem::path headerFileRootName = - std::filesystem::weakly_canonical(headerFile, ec).root_name(); - std::string aliasedFilepath = !ec && headerFileRootName == m_outputRootName - ? std::filesystem::relative(headerFile, outputDir).generic_string() - : headerFile.generic_string(); - ec.clear(); + std::string aliasedFilepath = headerFile.generic_string(); std::string aliasPath = outputDir + '/' + m_currentFilename;