| 314 | } |
| 315 | |
| 316 | void WorkingSetController::clearWorkingSet(Sublime::Area * area) |
| 317 | { |
| 318 | const QString workingSetId = area->workingSet(); |
| 319 | if (workingSetId.isEmpty()) { |
| 320 | // Nothing to do - area has no working set |
| 321 | return; |
| 322 | } |
| 323 | |
| 324 | WorkingSet* set = workingSet(workingSetId); |
| 325 | set->deleteSet(true); |
| 326 | |
| 327 | WorkingSet* newSet = workingSet(workingSetId); |
| 328 | newSet->connectArea(area); |
| 329 | newSet->loadToArea(area); |
| 330 | Q_ASSERT(newSet->fileList().isEmpty()); |
| 331 | } |
| 332 | |
| 333 | #include "moc_workingsetcontroller.cpp" |
nothing calls this directly
no test coverage detected