aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-07-23 13:07:05 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-07-24 08:56:24 +0000
commitce7407dc03d94b034d5079944e2dd2d38f187815 (patch)
tree47a7c2f1f01679bc2359feaeb6d37589c388006c /src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
parent8b9821440d0c74083476f5b80c7212de71d4013a (diff)
CMake: Update target list in build step list widget
Update the target list in the build step list widget for CMakeBuildSteps, even when "current executable" meta-target is selected. Change-Id: Ifc1d8dc67894202eb38fe6088552797b198c7463 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildstep.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildstep.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
index 9ffb96acd33..fc2be1f1e3b 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
@@ -113,10 +113,10 @@ void CMakeBuildStep::handleBuildTargetChanges(bool success)
{
if (!success)
return; // Do not change when parsing failed.
- if (isCurrentExecutableTarget(m_buildTarget))
- return; // Do not change just because a different set of build targets is there...
- if (!static_cast<CMakeProject *>(project())->buildTargetTitles().contains(m_buildTarget))
+ if (!isCurrentExecutableTarget(m_buildTarget)
+ && !static_cast<CMakeProject *>(project())->buildTargetTitles().contains(m_buildTarget)) {
setBuildTarget(allTarget());
+ }
emit buildTargetsChanged();
}