I just added a line to delete the tid from the opened_task dict when the
task gets closed.

** Patch added: "fix_unable_to_open_closed_task.patch"
   http://launchpadlibrarian.net/40838779/fix_unable_to_open_closed_task.patch

-- 
Once task is opened then closed, it can't be opened again.
https://bugs.launchpad.net/bugs/537776
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!: New

Bug description:
I can open a task, then close it, but opening it again gets the following 
traceback:


Traceback (most recent call last):
  File "/home/oliverj/workspace/gtg/trunk/GTG/taskbrowser/browser.py", line 
1172, in on_edit_active_task
    self.vmanager.open_task(tid)
  File "/home/oliverj/workspace/gtg/trunk/GTG/viewmanager/manager.py", line 
145, in open_task
    tv.present()
  File "/home/oliverj/workspace/gtg/trunk/GTG/taskeditor/editor.py", line 583, 
in present
    self.window.present()
AttributeError: 'NoneType' object has no attribute 'present'

It looks like the window is destroyed in the editor code, but the editor 
remains in the list of opened editors according to the view manager.



_______________________________________________
Mailing list: https://launchpad.net/~gtg
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gtg
More help   : https://help.launchpad.net/ListHelp

Reply via email to