diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-16 11:47:28 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-16 11:10:22 +0000 |
commit | 4e45f713397da8c88d150beab68b7fc862f8f6ea (patch) | |
tree | 60a51b2f15de4777a3c41245c2ec05094791fba3 /src/plugins/cmakeprojectmanager/cmakebuildstep.cpp | |
parent | 596a54f6454a984566e0a788a12139b1d9f94bd1 (diff) |
CMake: Fix buildstep target selection
The BuildStepList is no longer a ProjectConfiguration, so this
code breaks.
Task-number: QTCREATORBUG-22818
Change-Id: I7350c0520d4b82e896761a87b52ccc1d47934530
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildstep.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakebuildstep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index 7510ff3d64d..68d7bc44384 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -262,7 +262,7 @@ BuildStepConfigWidget *CMakeBuildStep::createConfigWidget() QString CMakeBuildStep::defaultBuildTarget() const { - const ProjectConfiguration *const pc = qobject_cast<ProjectConfiguration *>(parent()); + const auto pc = qobject_cast<BuildStepList *>(parent()); const Core::Id parentId = pc ? pc->id() : Core::Id(); if (parentId == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) return cleanTarget(); |