| 77 | } |
| 78 | |
| 79 | void DocumentClassesFolder::updateChangedFiles() |
| 80 | { |
| 81 | bool hadChanges = false; |
| 82 | |
| 83 | // re-parse changed documents. |
| 84 | // TODO: m_updatedFiles seems no longer set, check again and remove if |
| 85 | for (const IndexedString& file : std::as_const(m_updatedFiles)) { |
| 86 | // Make sure it's one of the monitored files. |
| 87 | if (m_openFiles.contains(file)) |
| 88 | hadChanges |= updateDocument(file); |
| 89 | } |
| 90 | |
| 91 | // Processed all files. |
| 92 | m_updatedFiles.clear(); |
| 93 | |
| 94 | // Sort if had changes. |
| 95 | if (hadChanges) |
| 96 | recursiveSort(); |
| 97 | } |
| 98 | |
| 99 | void DocumentClassesFolder::nodeCleared() |
| 100 | { |