From: Ben Soares Date: Tue, 28 Jun 2022 12:31:55 +0000 (+0100) Subject: JAL-1988 Don't put Quit in the File menu if there's a handler for it X-Git-Tag: Release_2_11_2_6~43^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=68c8a239acd5ff30ef4d8f00dfd9d15bf4923b6b;p=jalview.git JAL-1988 Don't put Quit in the File menu if there's a handler for it --- diff --git a/src/jalview/jbgui/GDesktop.java b/src/jalview/jbgui/GDesktop.java index 996cb1f..e046783 100755 --- a/src/jalview/jbgui/GDesktop.java +++ b/src/jalview/jbgui/GDesktop.java @@ -404,7 +404,10 @@ public class GDesktop extends JFrame FileMenu.add(saveAsState); FileMenu.add(loadState); FileMenu.addSeparator(); - FileMenu.add(quit); + if (!APQHandlers.setQuit) + { + FileMenu.add(quit); + } if (!APQHandlers.setAbout) { HelpMenu.add(aboutMenuItem);