From 86cfbbddfc604b9b410fd0c0b98d3aa64459f42a Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Tue, 2 Mar 2010 11:55:56 +0100 Subject: [PATCH] Fix cmake wizard not showing after a file change --- src/plugins/cmakeprojectmanager/cmakeproject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index b3da6c688bd..86c71af8e4c 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -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)); -- GitLab