| 205 | } |
| 206 | |
| 207 | void UIContext::onRemoveDocument(doc::Document* doc) |
| 208 | { |
| 209 | if (doc == m_lastSelectedDoc) |
| 210 | m_lastSelectedDoc = nullptr; |
| 211 | |
| 212 | // We don't destroy views in batch mode. |
| 213 | if (isUIAvailable()) { |
| 214 | Workspace* workspace = App::instance()->workspace(); |
| 215 | |
| 216 | for (DocumentView* docView : getAllDocumentViews(doc)) { |
| 217 | workspace->removeView(docView); |
| 218 | delete docView; |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | void UIContext::onGetActiveSite(Site* site) const |
| 224 | { |
nothing calls this directly
no test coverage detected