MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / saveCopyAs

Method saveCopyAs

src/dialogs/MainWindow.cpp:1415–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1413}
1414
1415bool 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
1430void MainWindow::saveAll()
1431{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected