| 599 | } |
| 600 | |
| 601 | void IDE::renameFile(const QString& oldPath, const QString& newPath) |
| 602 | { |
| 603 | DMap::iterator it = documents.find(oldPath); |
| 604 | if (it == documents.end()) { |
| 605 | qDebug() << "internal error: document " << oldPath << " not found"; |
| 606 | } else { |
| 607 | Doc* doc = it.value(); |
| 608 | documents.remove(oldPath); |
| 609 | fsWatch.removePath(oldPath); |
| 610 | documents.insert(newPath, doc); |
| 611 | fsWatch.addPath(newPath); |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | void |
| 616 | IDE::versionCheckFinished(void) { |
no test coverage detected