This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jtimer. See http://git.chorem.org/jtimer.git commit 379206f6c8273444bbcd6e41a9003edf3c20321c Author: Eric Chatellier <chatellier@codelutin.com> Date: Wed Mar 9 16:44:38 2016 +0100 fixes #1343: When éditing a task, please do not recompute the tree structure at the end --- .../org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java b/src/main/java/org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java index 741e8c7..e2aeeff 100644 --- a/src/main/java/org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java +++ b/src/main/java/org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java @@ -331,11 +331,16 @@ public class ProjectsAndTasksModel extends AbstractTreeTableModel implements // not name modification (time...) modelSupport.fireChildChanged(path, childIndex, taskUO); } else { - // name modification (order can change) - modelSupport.fireChildRemoved(path, childIndex, taskUO); subTasksCache.remove(pathLastComponent); // force child recache int newIndex = getIndexOfChild(pathLastComponent, taskUO); - modelSupport.fireChildAdded(path, newIndex, taskUO); + if (newIndex != childIndex) { + // name modification (order DO change) + modelSupport.fireChildRemoved(path, childIndex, taskUO); + modelSupport.fireChildAdded(path, newIndex, taskUO); + } else { + // name modification (order DO NOT change) + modelSupport.fireChildChanged(path, childIndex, taskUO); + } } break; } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.