JAL-1330 pick primary seqeunce data source for authority rather than first node of...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sat, 22 Jun 2013 13:17:14 +0000 (14:17 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sat, 22 Jun 2013 13:17:14 +0000 (14:17 +0100)
src/jalview/gui/JDatabaseTree.java

index 69f0fef..d954b76 100644 (file)
@@ -361,21 +361,9 @@ public class JDatabaseTree extends JalviewDialog implements KeyListener
             }
             else
             {
-              if ((admt = dmt.getFirstLeaf()) != null
-                      && admt.getUserObject() != null)
-              {
-                // modify db selection to just first leaf.
-                if (admt.getUserObject() instanceof DbSourceProxy)
-                {
-                  srcs.add((DbSourceProxy) admt.getUserObject());
-                }
-                else
-                {
-                  srcs.add(sfetcher.getSourceProxy(
-                          (String) admt.getUserObject()).get(0));
-                }
-                forcedFirstChild = true;
-              }
+              srcs.add(sfetcher.getSourceProxy((String) dmt
+                      .getUserObject()).get(0));
+              forcedFirstChild = true;
             }
           }
         }