| 261 | } |
| 262 | |
| 263 | void Controller::areaReleased() |
| 264 | { |
| 265 | Q_D(Controller); |
| 266 | |
| 267 | auto *w = reinterpret_cast<Sublime::MainWindow*>(sender()); |
| 268 | qCDebug(SUBLIME) << "marking areas as mainwindow-free" << w << d->controlledWindows.contains(w) << d->shownAreas.keys(w); |
| 269 | const auto areas = d->shownAreas.keys(w); |
| 270 | for (Area* area : areas) { |
| 271 | qCDebug(SUBLIME) << "" << area->objectName(); |
| 272 | areaReleased(area); |
| 273 | disconnect(area, nullptr, w, nullptr); |
| 274 | } |
| 275 | |
| 276 | d->controlledWindows.removeAll(w); |
| 277 | } |
| 278 | |
| 279 | void Controller::areaReleased(Sublime::Area *area) |
| 280 | { |