Make sure link menu is displayed
authoramwaterhouse <Andrew Waterhouse>
Wed, 9 Aug 2006 08:50:57 +0000 (08:50 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 9 Aug 2006 08:50:57 +0000 (08:50 +0000)
src/jalview/gui/PopupMenu.java

index 803f41a..23d04b7 100755 (executable)
@@ -353,7 +353,10 @@ public class PopupMenu extends JPopupMenu
 \r
             linkMenu.add(item);\r
           }\r
-          sequenceMenu.add(linkMenu);\r
+          if(sequence!=null)\r
+            sequenceMenu.add(linkMenu);\r
+          else\r
+            add(linkMenu);\r
         }\r
     }\r
 \r