diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-08 12:02:17 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-08 11:16:38 +0000 |
commit | 43c04ac80b44b4b2da6890c1ada5f9c6cfc817bf (patch) | |
tree | e72e18765a9522e8f65825637770ae1c865e7e7c /src/plugins/autotoolsprojectmanager | |
parent | a9aac73e379413187b273616d1fa6ecfa146270f (diff) |
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>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/makestep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotoolsprojectmanager/makestep.cpp b/src/plugins/autotoolsprojectmanager/makestep.cpp index 84ebec917ac..3fb0ec41053 100644 --- a/src/plugins/autotoolsprojectmanager/makestep.cpp +++ b/src/plugins/autotoolsprojectmanager/makestep.cpp @@ -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(); }); } |