Skip to content

Commit 9968393

Browse files
committed
possible fix for editor window closing (issue processing#569)
1 parent 5bed541 commit 9968393

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

app/src/processing/app/Base.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,12 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
967967
Preferences.save();
968968

969969
if (defaultFileMenu == null) {
970-
if (!modeSwitch) {
970+
if (modeSwitch) {
971+
// need to close this editor, ever so temporarily
972+
editor.setVisible(false);
973+
editor.dispose();
974+
activeEditor = null;
975+
} else {
971976
// Since this wasn't an actual Quit event, call System.exit()
972977
System.exit(0);
973978
}

todo.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ 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
99

10+
_ with one sketch open, changing the mode doesn't close the original editor
11+
_ only affects linux and windows
12+
_ http://code.google.com/p/processing/issues/detail?id=569
13+
1014
earlier
1115
X Unsatisfied Link Error running OPENGL on 64-bit ubuntu
1216
X http://dev.processing.org/bugs/show_bug.cgi?id=1557

0 commit comments

Comments
 (0)