[liblarch] Traceback after removing last task

Bug #932405 reported by Izidor Matušov on 2012-02-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
High
Izidor Matušov

Bug Description

Steps to reproduce

1, create task 'task1' with tag @a
2, create task 'task2' with tags @b, @c
3, make @b and @c under @a
4, set colors to each tag -> @a, @b, @c
5, remove 'task1', i.e. tag @a is only meta-tag without own tags
6, remove task 'task2'

Expected result:
task2 is removed without any traceback, tags @a, @b, @c are no longer in sidebar

Actual result - traceback:
<traceback>
Traceback (most recent call last):
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/delete_dialog.py", line 53, in on_delete_confirm
    tag.modified()
  File "/usr/lib/python2.7/dist-packages/liblarch/treenode.py", line 54, in modified
    self.tree.modify_node(self.node_id,priority=priority)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 93, in modify_node
    self._external_request(self._modify_node, priority, node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 113, in _external_request
    self._queue.process_queue()
  File "/usr/lib/python2.7/dist-packages/liblarch/processqueue.py", line 45, in process_queue
    func(*action[1:])
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 288, in _modify_node
    self._callback('node-modified', node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/tree.py", line 83, in _callback
    func(node_id)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 142, in __external_modify
    return self.__update_node(node_id,direction="both")
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 258, in __update_node
    self.callback(action, node_id, path)
  File "/usr/lib/python2.7/dist-packages/liblarch/filteredtree.py", line 134, in callback
    func(node_id,path)
  File "/usr/lib/python2.7/dist-packages/liblarch/__init__.py", line 251, in __emit
    func(node_id,path)
  File "/usr/lib/python2.7/dist-packages/liblarch_gtk/treemodel.py", line 152, in remove_task
    raise Exception("Trying to remove node %s with no iterator"%node_id)
Exception: Trying to remove node @b with no iterator
</traceback>

(I think this is the same bug as my bug with @Geburtstag for GTG 0.2.9)

Izidor Matušov (izidor) on 2012-03-15
Changed in gtg:
assignee: Lionel Dricot (ploum) → Izidor Matušov (izidor)
Izidor Matušov (izidor) wrote :
Changed in gtg:
status: Confirmed → Fix Committed
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers