| 1266 | } |
| 1267 | |
| 1268 | void MainWindow::closeAllFiles() |
| 1269 | { |
| 1270 | if (!checkEditorsBeforeClose(editors())) { |
| 1271 | return; |
| 1272 | } |
| 1273 | |
| 1274 | // Ask the manager to close the editors the dockedEditor knows about |
| 1275 | for (ScintillaNext *editor : editors()) { |
| 1276 | editor->close(); |
| 1277 | } |
| 1278 | |
| 1279 | newFile(); |
| 1280 | } |
| 1281 | |
| 1282 | void MainWindow::closeAllExceptActive() |
| 1283 | { |