← Back to team overview

gtg team mailing list archive

[Bug 571940] Re: removed tasks are not removed from UI under certain cases

 

comments very appreciated! this one is quite nasty

-- 
removed tasks are not removed from UI under certain cases
https://bugs.launchpad.net/bugs/571940
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Confirmed

Bug description:
- create a task
- open it
- from the editor, create a subtask
- delete it from the editor

The subtask gets deleted (check with Bryce's gtcli), but the widget representing the subtask stays in the browser.

The cause of this is in GTG/taskbrowser/tasktree.py , remove_task function.
That function gets called at the end of the deletion (when the task is no more in the "tree"), and should remove the row associated with the task from the UI. To get the correct row, it calls get_path_for_node(), but that function will return None, since the node is no more in the tree.

So, remove_task cannot find out which is the correct row to remove, and does nothing (leaving the row that should have been removed still visible).







References