| 398 | } |
| 399 | |
| 400 | void Area::setWorkingSet(const QString &name, bool persistent, Area *oldArea) |
| 401 | { |
| 402 | Q_D(Area); |
| 403 | |
| 404 | oldArea = oldArea ? oldArea : this; |
| 405 | if (oldArea != this || name != d->workingSet) { |
| 406 | qCDebug(SUBLIME) << this << "setting new working-set" << name; |
| 407 | QString oldName = d->workingSet; |
| 408 | emit changingWorkingSet(this, oldArea, oldName, name); |
| 409 | d->workingSet = name; |
| 410 | d->workingSetPersists = persistent; |
| 411 | emit changedWorkingSet(this, oldArea, oldName, name); |
| 412 | } else if (name.isEmpty()) { |
| 413 | d->workingSetPersists = persistent; |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | bool Area::closeView(View* view, bool silent) |
| 418 | { |
no test coverage detected