Skip to content

Instantly share code, notes, and snippets.

@Tak
Created January 23, 2012 14:52
Show Gist options
  • Save Tak/1663504 to your computer and use it in GitHub Desktop.
Save Tak/1663504 to your computer and use it in GitHub Desktop.
// This path can be reentered if something else tries to close the window
// before the user responds to the "Save changes?" dialog.
// This results in a stack of "Save changes?" dialogs, and unpredictable behavior
// when responding to all but the first.
// The Right Fix would be to make it impossible for this to happen.
// For now, we work around by replacing the OnClosing handler
// until we get an answer back from the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment