Open
Description
Arduino 1.8.5 on Mac OS X 10.13.3 (High Sierra)
How to reproduce:
-
launch the IDE
-
open a new sketch --> window N°1
-
open a second sketch --> window N°2
-
type any text in the second window N°2 so that the sketch is marked as modified
-
press cmd-w to close the second window
--> you get a modal dialog panel stating "Do you want to save changes to this sketch before closing" -
answer "don't save"
--> RESULT: the alert panel get discarded but the window N°2 is still opened -
press cmd-w again to close the second window
--> RESULT: the IDE crashes