aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonsettings.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2025-07-22 10:08:17 +0200
committerMarcus Tillmanns <[email protected]>2025-07-22 12:53:45 +0000
commitab2ab92fa47bc46a94c9d67a3bc7f7b5781bec9f (patch)
tree3b036b1e0536b2cbb1c94ce6227c0d38dcd55d97 /src/plugins/python/pythonsettings.cpp
parentb3c1ca422c0aa6058843ec79d4f1158655a89872 (diff)
ProjectExplorer: Use DetectionSource in Kit
Diffstat (limited to 'src/plugins/python/pythonsettings.cpp')
-rw-r--r--src/plugins/python/pythonsettings.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp
index b5a0a74306a..335f52d4562 100644
--- a/src/plugins/python/pythonsettings.cpp
+++ b/src/plugins/python/pythonsettings.cpp
@@ -784,9 +784,10 @@ void PythonSettings::addKitsForInterpreter(const Interpreter &interpreter, bool
} else if (force || !isVenvPython(interpreter.command)) {
KitManager::registerKit(
[interpreter](Kit *k) {
- k->setAutoDetected(true);
- k->setAutoDetectionSource(
- interpreter.detectionSource.isEmpty() ? "Python" : interpreter.detectionSource);
+ const QString source = interpreter.detectionSource.isEmpty()
+ ? "Python"
+ : interpreter.detectionSource;
+ k->setDetectionSource({DetectionSource::FromSystem, source});
k->setUnexpandedDisplayName("%{Python:Name}");
setRelevantAspectsToKit(k);
PythonKitAspect::setPython(k, interpreter.id);