aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotoolsprojectmanager
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-09-08 12:02:17 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-09-08 11:16:38 +0000
commit43c04ac80b44b4b2da6890c1ada5f9c6cfc817bf (patch)
treee72e18765a9522e8f65825637770ae1c865e7e7c /src/plugins/autotoolsprojectmanager
parenta9aac73e379413187b273616d1fa6ecfa146270f (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.cpp2
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();
});
}