summarylogtreecommitdiffstats
path: root/pythonproject.patch
diff options
context:
space:
mode:
authorAndrey Rodionov2025-03-16 20:47:40 +0300
committerAndrey Rodionov2025-03-16 20:58:21 +0300
commit6f9c8717d0afe657f9289811f0a9cc81e836bbc8 (patch)
treef4632bab926513f6cb19f2d70d4d0d96cb4e5c86 /pythonproject.patch
downloadaur-6f9c8717d0afe657f9289811f0a9cc81e836bbc8.tar.gz
Create package
Diffstat (limited to 'pythonproject.patch')
-rw-r--r--pythonproject.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pythonproject.patch b/pythonproject.patch
new file mode 100644
index 000000000000..a79b907f7c6a
--- /dev/null
+++ b/pythonproject.patch
@@ -0,0 +1,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;