altosuilib: Track open frames, exit when none remain
[fw/altos] / altosui / AltosGraphUI.java
index 32b59977d2a6ecc49e56e9272b8a7b23837a4542..4f394d73fb932a617bc62a806e7b1ab313640768 100644 (file)
@@ -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);
                                }