Crash when deleting all tasks (negative task count?)
Bug #582612 reported by
Luca Invernizzi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
High
|
Unassigned |
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.
Changed in gtg: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in gtg: | |
milestone: | 0.3 → 0.2.9 |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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. src/gtg/ gtg/GTG/ taskbrowser/ browser. py:855: GtkWarning: gtk_tree_ model_sort_ build_level: assertion `length > 0' failed ctask_tv. set_model( ctask_modelsort ) bryce/src/ gtg/gtg/ GTG/viewmanager /delete_ dialog. py", line 42, in on_delete_confirm req.delete_ task(tid) bryce/src/ gtg/gtg/ GTG/core/ requester. py", line 211, in delete_task
/home/bryce/
self.
Traceback (most recent call last):
File "/home/
self.
File "/home/
for tag in task.get_tags():
AttributeError: 'NoneType' object has no attribute 'get_tags'
1@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'
1@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'
2@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'
3@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'
3@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
if not self.flat and n.has_parent():
AttributeError: 'NoneType' object has no attribute 'has_parent'
4@1 is modified in the filteredtree bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 195, in __task_modified is_root( self.get_ node(tid) ) bryce/src/ gtg/gtg/ GTG/core/ filteredtree. py", line 611, in __is_root
Traceback (most recent call last):
File "/home/
inroot = self.__
File "/home/
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):
F...