forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -150,8 +150,10 @@ QWidget *BuildStep::doCreateConfigWidget()
|
|||||||
for (BaseAspect *aspect : std::as_const(*this))
|
for (BaseAspect *aspect : std::as_const(*this))
|
||||||
connect(aspect, &BaseAspect::changed, widget, recreateSummary);
|
connect(aspect, &BaseAspect::changed, widget, recreateSummary);
|
||||||
|
|
||||||
|
if (buildConfiguration()) {
|
||||||
connect(buildConfiguration(), &BuildConfiguration::buildDirectoryChanged,
|
connect(buildConfiguration(), &BuildConfiguration::buildDirectoryChanged,
|
||||||
widget, recreateSummary);
|
widget, recreateSummary);
|
||||||
|
}
|
||||||
|
|
||||||
recreateSummary();
|
recreateSummary();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user