summaryrefslogtreecommitdiff
path: root/altosui
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-15 22:37:39 -0700
committerKeith Packard <keithp@keithp.com>2016-06-15 22:37:39 -0700
commit2a4d741872449b5332f28e018fa3acc53ed7d891 (patch)
tree29ce4678f749eee98b10b378a0b7ca8e2ca4f0bf /altosui
parent04c6f4c54ac10f6464ffb8cab2186ac2b2eafb00 (diff)
altosuilib: Track open frames, exit when none remain
This will let us not have the altosui window open by causing the application to shut down when the last frame closes. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui')
-rw-r--r--altosui/AltosGraphUI.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/altosui/AltosGraphUI.java b/altosui/AltosGraphUI.java
index 32b59977..4f394d73 100644
--- a/altosui/AltosGraphUI.java
+++ b/altosui/AltosGraphUI.java
@@ -100,8 +100,6 @@ public class AltosGraphUI extends AltosUIFrame implements AltosFontListener, Alt
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
- setVisible(false);
- dispose();
AltosUIPreferences.unregister_font_listener(AltosGraphUI.this);
AltosPreferences.unregister_units_listener(AltosGraphUI.this);
}