diff --git a/src/java/davmail/ui/OSXFrameGatewayTray.java b/src/java/davmail/ui/OSXFrameGatewayTray.java index c4b1919e..7a9d7222 100644 --- a/src/java/davmail/ui/OSXFrameGatewayTray.java +++ b/src/java/davmail/ui/OSXFrameGatewayTray.java @@ -39,6 +39,7 @@ public class OSXFrameGatewayTray extends FrameGatewayTray { try { OSXAdapter.setAboutHandler(this, FrameGatewayTray.class.getDeclaredMethod("about", (Class[]) null)); OSXAdapter.setPreferencesHandler(this, FrameGatewayTray.class.getDeclaredMethod("preferences", (Class[]) null)); + OSXAdapter.setQuitHandler(this, OSXFrameGatewayTray.class.getDeclaredMethod("quit", (Class[]) null)); } catch (Exception e) { DavGatewayTray.error("Error while loading the OSXAdapter", e); }