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 b2a1f4cf3eb441b283e1591c4e27f36e9f904eae 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 7372e8d..6485a06 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 @@ -657,11 +657,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>.