forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/12.0'
Change-Id: I70bcac4195095a7646dcdc31532d8f61b643d869
This commit is contained in:
@@ -214,7 +214,8 @@ void CMakeBuildSystem::requestDebugging()
|
||||
|
||||
bool CMakeBuildSystem::supportsAction(Node *context, ProjectAction action, const Node *node) const
|
||||
{
|
||||
if (dynamic_cast<CMakeTargetNode *>(context))
|
||||
const auto cmakeTarget = dynamic_cast<CMakeTargetNode *>(context);
|
||||
if (cmakeTarget && cmakeTarget->productType() != ProductType::Other)
|
||||
return action == ProjectAction::AddNewFile || action == ProjectAction::AddExistingFile
|
||||
|| action == ProjectAction::AddExistingDirectory || action == ProjectAction::Rename
|
||||
|| action == ProjectAction::RemoveFile;
|
||||
|
||||
Reference in New Issue
Block a user