| 277 | } |
| 278 | |
| 279 | void WorkingSetController::changedWorkingSet(Sublime::Area *area, Sublime::Area *oldArea, const QString &from, const QString &to) |
| 280 | { |
| 281 | qCDebug(WORKINGSET) << "changed working-set from" << from << "to" << to << "area" << area; |
| 282 | if ((oldArea == area && from == to) || m_changingWorkingSet) { |
| 283 | return; |
| 284 | } |
| 285 | |
| 286 | if (!to.isEmpty()) { |
| 287 | WorkingSet* newSet = workingSet(to); |
| 288 | newSet->connectArea(area); |
| 289 | newSet->loadToArea(area); |
| 290 | } else { |
| 291 | // Clear silently, any user-interaction should have happened before |
| 292 | area->clearViews(true); |
| 293 | } |
| 294 | |
| 295 | emit workingSetSwitched(); |
| 296 | } |
| 297 | |
| 298 | void WorkingSetController::viewAdded( Sublime::AreaIndex* , Sublime::View* ) |
| 299 | { |
nothing calls this directly
no test coverage detected