Skip to content
Snippets Groups Projects
Commit 86cfbbdd authored by dt's avatar dt
Browse files

Fix cmake wizard not showing after a file change

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