kill editor window on stop when running externally

This commit is contained in:
benfry
2007-06-17 21:42:21 +00:00
parent 0ad0b5ecd6
commit ee5f35cea0
+4
View File
@@ -1310,6 +1310,10 @@ public class Editor extends JFrame
public void handleStop() { // called by menu or buttons
if (presenting) {
doClose();
} else if (runtime.window != null) {
// When run externally, kill the applet window,
// otherwise things may not stop properly with libraries.
doClose();
} else {
doStop();
}