From df6fad3eeb34ab890f0dbdbcfef37035d1505558 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 22 Jun 2013 14:17:14 +0100 Subject: [PATCH] JAL-1330 pick primary seqeunce data source for authority rather than first node of sub tree --- src/jalview/gui/JDatabaseTree.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) 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; } } } -- 1.7.10.2