This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit cabd563ef3021707c45833bf75a1076cb3f02b40 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Oct 27 14:54:05 2016 +0200 amélioration de l'algorithme de détection du nœud trip --- .../application/swing/ui/content/open/ContentOpenableUIHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/content/open/ContentOpenableUIHandler.java b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/content/open/ContentOpenableUIHandler.java index 3be7f7e..7f227f3 100644 --- a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/content/open/ContentOpenableUIHandler.java +++ b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/content/open/ContentOpenableUIHandler.java @@ -326,9 +326,9 @@ public abstract class ContentOpenableUIHandler<E extends IdDto> extends ContentU } ObserveTreeHelper treeHelper = getTreeHelper(getUi()); - ObserveNode tripNode = treeHelper.getSelectedNode().getParent().getParent(); - if (tripNode instanceof ProgramSeineNode || tripNode instanceof ProgramLonglineNode) { - tripNode = treeHelper.getSelectedNode().getParent(); + ObserveNode tripNode = treeHelper.getSelectedNode(); + while (!(tripNode instanceof ProgramSeineNode || tripNode instanceof ProgramLonglineNode)) { + tripNode = tripNode.getParent(); } if (log.isInfoEnabled()) { log.info("Refresh trip node : " + tripNode); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.