| 49 | } |
| 50 | |
| 51 | void WorkingSetWidget::changingWorkingSet(Sublime::Area* area, Sublime::Area* /*oldArea*/, const QString& /*from*/, const QString& newSet) |
| 52 | { |
| 53 | qCDebug(WORKINGSET) << "re-creating widget" << m_area; |
| 54 | |
| 55 | Q_ASSERT(area == m_area); |
| 56 | Q_UNUSED(area); |
| 57 | |
| 58 | if (workingSet()) { |
| 59 | disconnect(workingSet(), &WorkingSet::setChangedSignificantly, |
| 60 | this, &WorkingSetWidget::setChangedSignificantly); |
| 61 | } |
| 62 | |
| 63 | WorkingSet* set = getSet(newSet); |
| 64 | setWorkingSet(set); |
| 65 | |
| 66 | if (set) { |
| 67 | connect(set, &WorkingSet::setChangedSignificantly, |
| 68 | this, &WorkingSetWidget::setChangedSignificantly); |
| 69 | } |
| 70 | setVisible(set && !set->isEmpty()); |
| 71 | } |
| 72 | |
| 73 | void WorkingSetWidget::setChangedSignificantly() |
| 74 | { |
nothing calls this directly
no test coverage detected