From 56b4f17a8cd11f46c1c3f456c324ea4227464808 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Wed, 11 Sep 2019 21:20:15 +0200 Subject: [PATCH] minor text fix --- src/main/java/es/kauron/jstudy/controller/Controller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/es/kauron/jstudy/controller/Controller.java b/src/main/java/es/kauron/jstudy/controller/Controller.java index 2b19cb5..5691303 100644 --- a/src/main/java/es/kauron/jstudy/controller/Controller.java +++ b/src/main/java/es/kauron/jstudy/controller/Controller.java @@ -206,7 +206,7 @@ public class Controller implements Initializable { tab.setOnCloseRequest(event -> { if (!((TableController) loader.getController()).saved.get()) { Alert dialog = new Alert(Alert.AlertType.WARNING); - dialog.setHeaderText("The tab " + ((TableController) loader.getController()).name + " has unsaved information"); + dialog.setHeaderText("The tab " + ((TableController) loader.getController()).name.get() + " has unsaved information"); dialog.setContentText("Do you want to save those changes?"); dialog.getButtonTypes().clear(); dialog.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);