branch develop updated (a81f77c -> 379206f)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository jtimer. See http://git.chorem.org/jtimer.git from a81f77c fixes #1342: Can't delete multi selected tasks new 379206f fixes #1343: When éditing a task, please do not recompute the tree structure at the end The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: 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 Summary of changes: .../org/chorem/jtimer/ui/treetable/ProjectsAndTasksModel.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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>.
participants (1)
-
chorem.org scm