same overzeaolous logic (JAL-915)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 27 Sep 2011 10:40:30 +0000 (11:40 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 27 Sep 2011 10:40:30 +0000 (11:40 +0100)
src/jalview/gui/PopupMenu.java

index da95ae0..1cc4cd7 100644 (file)
@@ -445,7 +445,7 @@ public class PopupMenu extends JPopupMenu
       structureMenu.setVisible(false);
     }
 
-    if (seq !=null && links != null && links.size() > 0)
+    if (links != null && links.size() > 0)
     {
 
       JMenu linkMenu = new JMenu("Link");
@@ -470,7 +470,7 @@ public class PopupMenu extends JPopupMenu
           continue;
         }
         final String label = urlLink.getLabel();
-        if (urlLink.isDynamic())
+        if (seq!=null && urlLink.isDynamic())
         {
 
           // collect matching db-refs