aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythoneditor.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2025-01-20 14:21:46 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2025-01-20 16:55:10 +0000
commit30dc2e66dcd7ac092a04432aa92c39e8be025924 (patch)
tree082762f2e63e1680d0bba84dcbab3e96aef6ff73 /src/plugins/python/pythoneditor.cpp
parentd38f7f74d4e38ba9bfe082fe89ad80da80b37a62 (diff)
ProjectExplorer: Add and make use of forwarding accessors in Project
Most accesses to activeTarget() are for getting to the active kit or build/deploy/run configuration. Simplify client code by adding convenience functions for that. No functional changes intended. Change-Id: Ide266712d19f960e4512672eb3bd00fc4d21b47b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
-rw-r--r--src/plugins/python/pythoneditor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp
index 5854b92d3de..49f59483ab5 100644
--- a/src/plugins/python/pythoneditor.cpp
+++ b/src/plugins/python/pythoneditor.cpp
@@ -163,8 +163,7 @@ void PythonEditorWidget::updateInterpretersSelector()
const QString name = buildConfiguration->displayName();
QAction *action = interpretersGroup->addAction(buildConfiguration->displayName());
action->setCheckable(true);
- if (target == project->activeTarget()
- && target->activeBuildConfiguration() == buildConfiguration) {
+ if (project->activeBuildConfiguration() == buildConfiguration) {
action->setChecked(true);
setButtonText(name);
if (auto pbc = qobject_cast<PythonBuildConfiguration *>(buildConfiguration))