From: Jim Procter Date: Sat, 22 Jun 2013 13:17:14 +0000 (+0100) Subject: JAL-1330 pick primary seqeunce data source for authority rather than first node of... X-Git-Tag: Jalview_2_9~233^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=df6fad3eeb34ab890f0dbdbcfef37035d1505558;p=jalview.git JAL-1330 pick primary seqeunce data source for authority rather than first node of sub tree --- diff --git a/src/jalview/gui/JDatabaseTree.java b/src/jalview/gui/JDatabaseTree.java index 69f0fef..d954b76 100644 --- a/src/jalview/gui/JDatabaseTree.java +++ b/src/jalview/gui/JDatabaseTree.java @@ -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; } } }