ganttproject
ganttproject copied to clipboard
alt+enter, after several cycles with keyboard-only editing, loses track of selected task to modify
Hi,
I'm currently using GanttProject 2.8.9 Pilsen (build 2335) on Ubuntu 18.04.
I'd like to report that, upon repeatedly using the alt+enter
shortcut to modify Task Properties (only the title, as I was performing a translation of a Project), the wrong task's Properties started opening instead of the selected task.
The cycle performed was:
- Use keyboard to select task
- Press
alt+enter
to open Task Properties - Modify title
- Hit
enter
to close Task Properties
The following bug started happening around the 60'th task (I have around 100 tasks on this project):
- Select, let's say, task 60 with keyboard
- Press
alt+enter
shortcut - Realize you're editing Task Properties of task 59
- Press
Esc
, switch back and forth with the keyboard to task 60. - Press
alt+enter
again, and realize you're still editing task 59. - Switch to task 61, press
alt+enter
; you're still editing task 59.
This was only resolved upon clicking on a task. Double-clicking or clicking and then alt+enter
would open the correct Task Properties dialogue.
It's hard to reproduce. But it happened randomly after restarting GanttProject, so I decided to document as best I could what happened.
For now, I'll attach the most recent log file .ganttproject-20180918131230.log
Hi I also have problems with editing/deleting tasks. We can select one and the change is applied to an other task. I also think #1095, #1332 are related and some have even been closed due to less info or missing ways for reproducing the wrong behaviour. And sometimes the selection is changed after leaving the tab. Some videos as proof attached.
@dbarashev FYI
Hey guys. I still can't reproduce this issue on the platforms which are available to me.
Some technical details
Obviously there are random synchronization issues between current selection from UI component perspective and from task actions perspective, and indeed when action is invoked it takes the list of currently selected tasks not from the tree, but from its own list. The list is supposed to be in sync with the tree, and it updates every time when selection in the tree changes, but let's assume that at some moment it goes out of sync for some unknown reason.
However, I made an attempt to fix it blindly and replaced code in the task actions so that it used the actual selection in the tree. May I ask you to test the result and let me know if the issue is still reproducible?
You can download the build from https://www.dropbox.com/sh/0gwuayq6vg0kyss/AAApogLPlvpg0lY9JltS-3sZa?dl=0
It is 2.8.9 plus calendar updates and a couple of other bugfixes. I made a ZIP archive only, hope that you can run it on Mac (TL;DR: unzip, start ganttproject.command)
Hi! Thank you very much for the try! But it still happens. See attached video. One point I can say, on windows I never had the issue yet. But on mac (2 in our team have one) it's like 50% probability to edit the wrong task, even with this test build. gantt-wrongTaskSelection.zip
Hi, I had this issue for over a year and learned how to live with it, but is very annoying. I thought latest version would resolve this, because it is obvious and I thought many others are having same issue manifestation. Problem still persists.
Repro steps:
- selecta task 1 and edit it
- selecta task 2 with moust and press ctrl-enter. Properties are opened for task 1.
MORE PROBLEMATICS is that issue is manifested also on delete shortcut, which deletes wrong tasks.
Note: If you select bar for task 2 or use right mouse button and select properties, correct task 2 properties will be opened. It doesn't work solely for keyboard shortcut.
I am attaching file sample. Operating system used is windows 10 pro, 64 bit. Selecta FR migracija - plan - phase 2 - 22.04 - Copy.zip