Commit 86cfbbdd authored by dt's avatar dt
Browse files

Fix cmake wizard not showing after a file change

parent 431a2763
......@@ -104,8 +104,7 @@ void CMakeProject::fileChanged(const QString &fileName)
void CMakeProject::changeActiveBuildConfiguration(ProjectExplorer::BuildConfiguration *bc)
{
CMakeTarget *target(qobject_cast<CMakeTarget *>(sender()));
if (!bc || !target || target != activeTarget())
if (!bc || bc->target() != activeTarget())
return;
CMakeBuildConfiguration * cmakebc(qobject_cast<CMakeBuildConfiguration *>(bc));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment