Skip to content

Commit 6834eef

Browse files
committed
possible additional fix for ghost editors on os x
1 parent 9968393 commit 6834eef

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/processing/app/Base.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
972972
editor.setVisible(false);
973973
editor.dispose();
974974
activeEditor = null;
975+
editors.remove(editor);
975976
} else {
976977
// Since this wasn't an actual Quit event, call System.exit()
977978
System.exit(0);
@@ -982,6 +983,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
982983
defaultFileMenu.insert(sketchbookMenu, 2);
983984
// defaultFileMenu.insert(defaultMode.getExamplesMenu(), 3);
984985
activeEditor = null;
986+
editors.remove(editor);
985987
}
986988

987989
} else {

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ X 'unexpected token void' for any type of error
66
X (due to fallback in preprocessor)
77
X 'public' keyword in class declarations breaks syntax checker
88
X http://code.google.com/p/processing/issues/detail?id=551
9+
X found issue where editor objects were being kept around after closing
10+
X particularly on mac os x, since the object wasn't being removed at 1 editor
911

1012
_ with one sketch open, changing the mode doesn't close the original editor
1113
_ only affects linux and windows

0 commit comments

Comments
 (0)