diff --git a/diylc/diylc-core/src/org/diylc/presenter/Presenter.java b/diylc/diylc-core/src/org/diylc/presenter/Presenter.java
index 85e1e460..734f7ba9 100644
--- a/diylc/diylc-core/src/org/diylc/presenter/Presenter.java
+++ b/diylc/diylc-core/src/org/diylc/presenter/Presenter.java
@@ -378,7 +378,7 @@ public class Presenter implements IPlugInPort {
if (projectFileManager.isModified()) {
int response =
view.showConfirmDialog(UNSAVED_CHANGES, WARNING,
- IView.YES_NO_CANCEL_OPTION, IView.WARNING_MESSAGE);
+ IView.YES_NO_CANCEL_OPTION, IView.WARNING_MESSAGE);
if (response == IView.YES_OPTION) {
if (this.getCurrentFileName() == null) {
File file = view.promptFileSave();
@@ -390,7 +390,7 @@ public class Presenter implements IPlugInPort {
saveProjectToFile(this.getCurrentFileName(), false);
}
}
- return response != IView.CANCEL_OPTION;
+ return response != IView.CANCEL_OPTION && response >= 0;
}
return true;
}
diff --git a/diylc/diylc-core/src/org/diylc/presenter/update.xml b/diylc/diylc-core/src/org/diylc/presenter/update.xml
index 1cc0ee1e..c810356a 100644
--- a/diylc/diylc-core/src/org/diylc/presenter/update.xml
+++ b/diylc/diylc-core/src/org/diylc/presenter/update.xml
@@ -3076,6 +3076,22 @@
https://github.com/bancika/diy-layout-creator/releases
+
+
+
+ 4
+ 7
+ 0
+
+ 2020-05-03 00:00:00.000 CET
+
+
+
+ IMPROVEMENT
+ Dismissing the closing confirmation dialog using the "X" button should behave the same as selecting "Cancel"
+
+
+ https://github.com/bancika/diy-layout-creator/releases