forked from qt-creator/qt-creator
CMakePM: Enable "Add Existing Directory"
This works via "addFiles" and it's supported. Change-Id: I18d193878c9549581a77d74fd8eb9761c4b08271 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -202,7 +202,8 @@ bool CMakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
|
|||||||
{
|
{
|
||||||
if (dynamic_cast<CMakeTargetNode *>(context))
|
if (dynamic_cast<CMakeTargetNode *>(context))
|
||||||
return action == ProjectAction::AddNewFile || action == ProjectAction::AddExistingFile
|
return action == ProjectAction::AddNewFile || action == ProjectAction::AddExistingFile
|
||||||
|| action == ProjectAction::Rename || action == ProjectAction::RemoveFile;
|
|| action == ProjectAction::AddExistingDirectory || action == ProjectAction::Rename
|
||||||
|
|| action == ProjectAction::RemoveFile;
|
||||||
|
|
||||||
return BuildSystem::supportsAction(context, action, node);
|
return BuildSystem::supportsAction(context, action, node);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user