diff --git a/src/magic/ui/MagicFrame.java b/src/magic/ui/MagicFrame.java index f49f0ceb7a..1e5a154d1d 100644 --- a/src/magic/ui/MagicFrame.java +++ b/src/magic/ui/MagicFrame.java @@ -600,7 +600,7 @@ public class MagicFrame extends JFrame implements ActionListener { try { // Generate and register the OSXAdapter, passing it a hash of all the methods we wish to // use as delegates for various com.apple.eawt.ApplicationListener methods - OSXAdapter.setQuitHandler(this, getClass().getDeclaredMethod("onClose", (Class[])null)); + OSXAdapter.setQuitHandler(this, getClass().getDeclaredMethod("onClose")); //OSXAdapter.setAboutHandler(this, getClass().getDeclaredMethod("about", (Class[])null)); //OSXAdapter.setPreferencesHandler(this, getClass().getDeclaredMethod("preferences", (Class[])null)); //OSXAdapter.setFileHandler(this, getClass().getDeclaredMethod("loadImageFile", new Class[] { String.class })); @@ -611,7 +611,7 @@ public class MagicFrame extends JFrame implements ActionListener { } } - private boolean onClose() { + public boolean onClose() { if (!config.isConfirmExit()) { exit(); } else {