I don't get the same behavior as described above with rev 821, instead I
get a traceback.


get_task should take a tid
Traceback (most recent call last):
  File "/home/oliverj/workspace/gtg/fix-export/GTG/gtk/browser/browser.py", 
line 1052, in on_task_treeview_key_press_event
    self.on_delete_tasks()
  File "/home/oliverj/workspace/gtg/fix-export/GTG/gtk/browser/browser.py", 
line 1110, in on_delete_tasks
    self.vmanager.ask_delete_tasks(tids_todelete)
  File "/home/oliverj/workspace/gtg/fix-export/GTG/gtk/manager.py", line 201, 
in ask_delete_tasks
    if self.delete_dialog.delete_tasks(tids):
  File "/home/oliverj/workspace/gtg/fix-export/GTG/gtk/delete_dialog.py", line 
79, in delete_tasks
    recursive_list_tasks(tasks, task)
  File "/home/oliverj/workspace/gtg/fix-export/GTG/gtk/delete_dialog.py", line 
76, in recursive_list_tasks
    for i in root.get_subtasks():
AttributeError: 'NoneType' object has no attribute 'get_subtasks'

I attached a patch to fix the crash.

** Patch added: "fix_delete_crash.patch"
   http://launchpadlibrarian.net/51044975/fix_delete_crash.patch

-- 
Pressing 'delete' key with no task highlighted creates a new task
https://bugs.launchpad.net/bugs/583103
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to