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:
Cristian Adam
2023-04-27 14:50:13 +02:00
parent e2f83c74f4
commit 5c2b2966e7

View File

@@ -202,7 +202,8 @@ bool CMakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
{
if (dynamic_cast<CMakeTargetNode *>(context))
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);
}