summarylogtreecommitdiffstats
path: root/pythonproject.patch
blob: a79b907f7c6a0fe42b233661fdf2d9f895f33903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/plugins/python/pythonbuildsystem.cpp b/src/plugins/python/pythonbuildsystem.cpp
index b2263811..ba4c6bf3 100644
--- a/src/plugins/python/pythonbuildsystem.cpp
+++ b/src/plugins/python/pythonbuildsystem.cpp
@@ -183,14 +183,14 @@ void PythonBuildSystem::triggerParsing()
         python = kitPython->command;
 
     const FilePath projectFile = projectFilePath();
-    const QString displayName = projectFile.relativePathFrom(projectDirectory()).toUserOutput();
+    const QString displayName = projectFilePath().fileName();
     newRoot->addNestedNode(
         std::make_unique<PythonFileNode>(projectFile, displayName, FileType::Project));
 
     bool hasQmlFiles = false;
 
     for (const FileEntry &entry : std::as_const(m_files)) {
-        const QString displayName = entry.filePath.relativePathFrom(projectDirectory()).toUserOutput();
+        const QString displayName = entry.filePath.fileName();
         const FileType fileType = getFileType(entry.filePath);
 
         hasQmlFiles |= fileType == FileType::QML;