aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonsettings.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2025-07-15 10:37:32 +0200
committerMarcus Tillmanns <[email protected]>2025-07-16 07:57:09 +0000
commit805e5d9cdd6b1c3e0f99718a04e2c50f6c0c7058 (patch)
tree6445d877e04f3f59fba745dfc807e654a479b449 /src/plugins/python/pythonsettings.cpp
parenta2d5f07ef68fc8d87ddfd512e45b893d306c440f (diff)
Python: Connect auto detected kits to their device
Diffstat (limited to 'src/plugins/python/pythonsettings.cpp')
-rw-r--r--src/plugins/python/pythonsettings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp
index edc100e23ec..ddacc26fb08 100644
--- a/src/plugins/python/pythonsettings.cpp
+++ b/src/plugins/python/pythonsettings.cpp
@@ -782,7 +782,8 @@ void PythonSettings::addKitsForInterpreter(const Interpreter &interpreter, bool
KitManager::registerKit(
[interpreter](Kit *k) {
k->setAutoDetected(true);
- k->setAutoDetectionSource("Python");
+ k->setAutoDetectionSource(
+ interpreter.detectionSource.isEmpty() ? "Python" : interpreter.detectionSource);
k->setUnexpandedDisplayName("%{Python:Name}");
setRelevantAspectsToKit(k);
PythonKitAspect::setPython(k, interpreter.id);