Skip to content

Commit

Permalink
WinForms: Application.Terminating event should be called even when th…
Browse files Browse the repository at this point in the history
…e main form's Closing event is not handled
  • Loading branch information
cwensley committed Mar 26, 2012
1 parent 7446142 commit db4a0d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Eto.Platform.Windows/Forms/WindowHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public override void Initialize ()
};
Control.Controls.Add (menuHolder);

// Always handle closing because we want to send Application.Terminating event
HandleEvent (Window.ClosingEvent);
}

public override void AttachEvent (string handler)
Expand Down

0 comments on commit db4a0d3

Please sign in to comment.