| 373 | } |
| 374 | |
| 375 | void ProjectManagerViewPlugin::closeProjects() |
| 376 | { |
| 377 | QList<KDevelop::IProject*> projectsToClose; |
| 378 | ProjectModel* model = ICore::self()->projectController()->projectModel(); |
| 379 | for (const auto& index : std::as_const(d->ctxProjectItemList)) { |
| 380 | KDevelop::ProjectBaseItem* item = model->itemFromIndex(index); |
| 381 | if( !projectsToClose.contains( item->project() ) ) |
| 382 | { |
| 383 | projectsToClose << item->project(); |
| 384 | } |
| 385 | } |
| 386 | d->ctxProjectItemList.clear(); |
| 387 | for (KDevelop::IProject* proj : std::as_const(projectsToClose)) { |
| 388 | core()->projectController()->closeProject( proj ); |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | |
| 393 | void ProjectManagerViewPlugin::installItemsFromContextMenu() |
nothing calls this directly
no test coverage detected