Skip to content
Snippets Groups Projects
Commit 6a111267 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Handle case of saving without a file location as save as.

parent 6077110f
No related branches found
No related tags found
No related merge requests found
......@@ -81,12 +81,16 @@ public class FileMenuController {
@FXML
public void handleSaveAction() {
if (documentStorage.getDocumentLocation() == null) {
handleSaveAsAction();
} else {
try {
documentStorage.saveDocument();
} catch (IOException e) {
// TODO
}
}
}
@FXML
public void handleSaveAsAction() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment