GNOME Bugzilla – Bug 141117
Tree expansion state gets out of sync in Resource Usage view.
Last modified: 2004-12-22 21:47:04 UTC
Do this - Open a project with multiple resources (e.g.2) allocated and a summary task (e.g. 1.) with children (e.g. 1.1 1.2 etc), Remove the 1. task (parent). Switch to Resource Usage View. Click Undo button. The left hand frame (table of resources/task names) table doesn't automatically expand though the right hand frame (bar graph rows) does.
Created attachment 27090 [details] Sample very small project.
Isn't it a duplicate of #141120 ?
No - though it may be in the code BUT it looks completely different in the actual faulty display AND with this bug you can fix up the display by expanding/collapsing resources whereas 141120 stays broken forever until you exit Planner and go back in to Planner project.
I have a patch to fix this BUT I've broken my patch so need a bit more time to re-implement the signals. What I'm doing is when I get a project task-inserted or task-removed signal I then generate model signals. The view watches the model for task-added or task-removed signals and when added it simply expands the view and when a task is removed it collapses the view. This is the easiest way to do this and seems to keep the display sane. I got carried away and tried to just play with individual rows but broke it from what I had working so I'll go back a bit :) Lincoln.
I don't agree that it's sane ;) We should at least just expand/collapse the node that the task is added to/removed from.
Was an easy-fix, totally unrelated to undo.