aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-06-06 23:30:03 +0200
committerTim Jenssen <tim.jenssen@qt.io>2023-06-07 09:50:48 +0000
commitad5e8392fe867e6e0af15cd8f209753f60e8cac0 (patch)
treef2381aa1cf5708811c2032fb4b931245c1883baf
parentadc901ba2cc2ac925b1fdc039e4c349734993355 (diff)
ProjectExplorer: fix warning when there is no buildConfiguration
For example in QML projects. Change-Id: I8ff53ce367f2b6f8d0baaf3c7ae1bd03acab84e0 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r--src/plugins/projectexplorer/buildstep.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/buildstep.cpp b/src/plugins/projectexplorer/buildstep.cpp
index 32be37048e..f4d5fba031 100644
--- a/src/plugins/projectexplorer/buildstep.cpp
+++ b/src/plugins/projectexplorer/buildstep.cpp
@@ -150,8 +150,10 @@ QWidget *BuildStep::doCreateConfigWidget()
for (BaseAspect *aspect : std::as_const(*this))
connect(aspect, &BaseAspect::changed, widget, recreateSummary);
- connect(buildConfiguration(), &BuildConfiguration::buildDirectoryChanged,
- widget, recreateSummary);
+ if (buildConfiguration()) {
+ connect(buildConfiguration(), &BuildConfiguration::buildDirectoryChanged,
+ widget, recreateSummary);
+ }
recreateSummary();