From 3144b001d3d4ffdd41c54fbecfa19a547018da7c Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 6 Jul 2009 13:54:58 +0000 Subject: [PATCH] Fix OSX menu default ActionListener git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@612 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/ui/tray/OSXAwtGatewayTray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/ui/tray/OSXAwtGatewayTray.java b/src/java/davmail/ui/tray/OSXAwtGatewayTray.java index 6045b349..7e751ebb 100644 --- a/src/java/davmail/ui/tray/OSXAwtGatewayTray.java +++ b/src/java/davmail/ui/tray/OSXAwtGatewayTray.java @@ -23,8 +23,8 @@ public class OSXAwtGatewayTray extends AwtGatewayTray { @Override protected void createAndShowGUI() { System.setProperty("apple.laf.useScreenMenuBar", "true"); - trayIcon.removeActionListener(settingsListener); super.createAndShowGUI(); + trayIcon.removeActionListener(settingsListener); try { OSXAdapter.setAboutHandler(this, AwtGatewayTray.class.getDeclaredMethod("about", (Class[]) null)); OSXAdapter.setPreferencesHandler(this, AwtGatewayTray.class.getDeclaredMethod("preferences", (Class[]) null));