| 131 | } |
| 132 | |
| 133 | WorkingSet* WorkingSetController::workingSet(const QString& id) |
| 134 | { |
| 135 | if(id.isEmpty()) |
| 136 | return m_emptyWorkingSet; |
| 137 | |
| 138 | auto workingSetIt = m_workingSets.find(id); |
| 139 | if (workingSetIt == m_workingSets.end()) { |
| 140 | auto* set = new WorkingSet(id); |
| 141 | connect(set, &WorkingSet::aboutToRemove, |
| 142 | this, &WorkingSetController::aboutToRemoveWorkingSet); |
| 143 | workingSetIt= m_workingSets.insert(id, set); |
| 144 | emit workingSetAdded(set); |
| 145 | } |
| 146 | |
| 147 | return *workingSetIt; |
| 148 | } |
| 149 | |
| 150 | QWidget* WorkingSetController::createSetManagerWidget(MainWindow* parent, Sublime::Area* fixedArea) { |
| 151 | if (fixedArea) { |
no test coverage detected