| 1413 | } |
| 1414 | |
| 1415 | bool MainWindow::saveCopyAs(const QString &fileName) |
| 1416 | { |
| 1417 | auto editor = currentEditor(); |
| 1418 | |
| 1419 | QFileDevice::FileError error = editor->saveCopyAs(fileName); |
| 1420 | |
| 1421 | if (error == QFileDevice::NoError) { |
| 1422 | return true; |
| 1423 | } |
| 1424 | else { |
| 1425 | showSaveErrorMessage(editor, error); |
| 1426 | return false; |
| 1427 | } |
| 1428 | } |
| 1429 | |
| 1430 | void MainWindow::saveAll() |
| 1431 | { |
nothing calls this directly
no outgoing calls
no test coverage detected