forked from qt-creator/qt-creator
BuildSteps: Fix a number of crashes
Fix crashes due to activeProjectConfigurationChanged signal sending a nullptr. Uses the same fix as QTCREATORBUG-18865, but in more places:-) Task-number: QTCREATORBUG-18866 Change-Id: Ic71af5ed26b2a44339f0c687f3f46bfdf62c2489 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -242,7 +242,7 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep) :
|
||||
});
|
||||
connect(makeStep->project(), &Project::activeProjectConfigurationChanged,
|
||||
this, [this](ProjectConfiguration *pc) {
|
||||
if (pc->isActive())
|
||||
if (pc && pc->isActive())
|
||||
updateDetails();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user