| 1280 | } |
| 1281 | |
| 1282 | void MainWindow::closeAllExceptActive() |
| 1283 | { |
| 1284 | auto e = currentEditor(); |
| 1285 | auto editor_list = editors(); |
| 1286 | |
| 1287 | editor_list.removeOne(e); |
| 1288 | |
| 1289 | if (checkEditorsBeforeClose(editor_list)) { |
| 1290 | for (ScintillaNext *editor : editor_list) { |
| 1291 | editor->close(); |
| 1292 | } |
| 1293 | } |
| 1294 | } |
| 1295 | |
| 1296 | void MainWindow::closeAllToLeft() |
| 1297 | { |