← Back to team overview

gtg team mailing list archive

[Bug 582612] Re: wrong count of tagged tasks

 

I tried reproducing this, but instead of seeing a negative number, it
crashed.  I started it up, selected all tasks, right clicked, picked
'Delete', and "Permanently remove tasks".  Crash dump follows:

Setting XDG vars to use default dataset.
/home/bryce/src/gtg/gtg/GTG/taskbrowser/browser.py:855: GtkWarning: gtk_tree_model_sort_build_level: assertion `length > 0' failed
  self.ctask_tv.set_model(ctask_modelsort)
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/viewmanager/delete_dialog.py", line 42, in on_delete_confirm
    self.req.delete_task(tid)
  File "/home/bryce/src/gtg/gtg/GTG/core/requester.py", line 211, in delete_task
    for tag in task.get_tags():
AttributeError: 'NoneType' object has no attribute 'get_tags'

1@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

1@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

2@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

3@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

3@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

4@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

5@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

6@1 is modified in the filteredtree
Traceback (most recent call last):
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 195, in __task_modified
    inroot = self.__is_root(self.get_node(tid))
  File "/home/bryce/src/gtg/gtg/GTG/core/filteredtree.py", line 611, in __is_root
    if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'

-- 
Crash when deleting all tasks (negative task count?)
https://bugs.launchpad.net/bugs/582612
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!: Triaged

Bug description:
- start gtg with the default tasks set
- F9
- remove all task
you should see a negative number besides "All tasks" and "Tasks with no tags". This is obviously wrong.





References