2012-02-13 17:28:26 |
Izidor Matušov |
description |
Let's have following tasks:
- a
-- b
Open editor for task b. Then switch to main window and delete task a or mark it as done. Editor for 'b' is still open although task does not exists anymore (if the parent was removed).
Sometimes it raises a traceback: (not able to reproduce it on script/debug.sh)
Traceback (most recent call last):
File "/usr/share/gtg/GTG/gtk/editor/editor.py", line 436, in delete_task
self.vmanager.ask_delete_tasks([self.task.get_id()])
File "/usr/share/gtg/GTG/gtk/manager.py", line 215, in ask_delete_tasks
if self.delete_dialog.delete_tasks(tids):
File "/usr/share/gtg/GTG/gtk/delete_dialog.py", line 96, in delete_tasks
recursive_list_tasks(tasks, task)
File "/usr/share/gtg/GTG/gtk/delete_dialog.py", line 93, in recursive_list_tasks
for i in root.get_subtasks():
AttributeError: 'NoneType' object has no attribute 'get_subtasks' |
Let's have following tasks:
- a
-- b
Open editor for task b. Then switch to main window and delete task a or mark it as done. Editor for 'b' is still open although task does not exists anymore (if the parent was removed).
Sometimes it raises a traceback: (not able to reproduce it on script/debug.sh)
Traceback (most recent call last):
File "/usr/share/gtg/GTG/gtk/editor/editor.py", line 436, in delete_task
self.vmanager.ask_delete_tasks([self.task.get_id()])
File "/usr/share/gtg/GTG/gtk/manager.py", line 215, in ask_delete_tasks
if self.delete_dialog.delete_tasks(tids):
File "/usr/share/gtg/GTG/gtk/delete_dialog.py", line 96, in delete_tasks
recursive_list_tasks(tasks, task)
File "/usr/share/gtg/GTG/gtk/delete_dialog.py", line 93, in recursive_list_tasks
for i in root.get_subtasks():
AttributeError: 'NoneType' object has no attribute 'get_subtasks'
Also have a look at the duplicate of this bug - bug #826683 |
|