| 76 | } |
| 77 | |
| 78 | DiffViewsCtrl::~DiffViewsCtrl() |
| 79 | { |
| 80 | // Close the diff views so that kdevelop does |
| 81 | // not show a lot of Untitled empty tabs on |
| 82 | // when starting again |
| 83 | for (const auto& d : std::as_const(m_views)) { |
| 84 | if (d.second.doc) |
| 85 | d.second.doc->close(); |
| 86 | } |
| 87 | m_views.clear(); |
| 88 | } |
| 89 | |
| 90 | void DiffViewsCtrl::setupDiffActions(KTextEditor::View* view, const RepoStatusModel::Areas diffType) const |
| 91 | { |