forked from qt-creator/qt-creator
cmake: Crash when removing
Fix nullpointer error. Occurs when no active project exists Task-number: QTCREATORBUG-18865 Change-Id: I826daac39c38ae1382d23cae20da9085dbcfe298 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
47886969cc
commit
b5379d599f
@@ -481,7 +481,7 @@ CMakeBuildStepConfigWidget::CMakeBuildStepConfigWidget(CMakeBuildStep *buildStep
|
||||
});
|
||||
connect(m_buildStep->project(), &Project::activeProjectConfigurationChanged,
|
||||
this, [this](ProjectConfiguration *pc) {
|
||||
if (pc->isActive())
|
||||
if (pc && pc->isActive())
|
||||
updateDetails();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user