| 583 | } |
| 584 | |
| 585 | void IDE::removeEditor(const QString& path, CodeEditor* ce) |
| 586 | { |
| 587 | DMap::iterator it = documents.find(path); |
| 588 | if (it == documents.end()) { |
| 589 | qDebug() << "internal error: document " << path << " not found"; |
| 590 | } else { |
| 591 | QSet<CodeEditor*>& editors = it.value()->editors; |
| 592 | editors.remove(ce); |
| 593 | if (editors.empty()) { |
| 594 | delete it.value(); |
| 595 | documents.remove(path); |
| 596 | fsWatch.removePath(path); |
| 597 | } |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | void IDE::renameFile(const QString& oldPath, const QString& newPath) |
| 602 | { |
no test coverage detected