This is an automated email from the git hooks/post-receive script. New commit to branch feature/7591_Correction_migration_entites_d_un_parent_a_un_autre in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit 83b1441fd13385f094761bd6c8c572d0d7a281bf Author: Samuel Maisonneuve <maisonneuve@codelutin.com> Date: Wed Aug 3 15:06:12 2016 +0200 Fix path expansion when moving an entity from a parent to another refs #7591 --- .../src/main/java/fr/ird/observe/ui/tree/ObserveTreeHelper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/observe-application-swing/src/main/java/fr/ird/observe/ui/tree/ObserveTreeHelper.java b/observe-application-swing/src/main/java/fr/ird/observe/ui/tree/ObserveTreeHelper.java index 28e496f..7d8b0b8 100644 --- a/observe-application-swing/src/main/java/fr/ird/observe/ui/tree/ObserveTreeHelper.java +++ b/observe-application-swing/src/main/java/fr/ird/observe/ui/tree/ObserveTreeHelper.java @@ -598,11 +598,13 @@ public class ObserveTreeHelper extends NavTreeHelper<ObserveNode> { } finally { // Clean the path to select bridge.setPathToSelect(); - } if (expandNode) { - expandPath(new TreePath(node.getPath())); + + // Fix bug (if no child in parent node, it will not expand...) + getUI().fireTreeExpanded(new TreePath(node.getPath())); + } } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.