Once task is opened then closed, it can't be opened again.

Bug #537776 reported by Jeff Oliver on 2010-03-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Jeff Oliver

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
  File "/home/oliverj/workspace/gtg/trunk/GTG/viewmanager/manager.py", line 145, in open_task
  File "/home/oliverj/workspace/gtg/trunk/GTG/taskeditor/editor.py", line 583, in 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.

Related branches

Jeff Oliver (jeffrey-oliver) wrote :

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

Luca Invernizzi (invernizzi) wrote :

Nice one, thanks!

Changed in gtg:
status: New → Fix Committed
importance: Undecided → High
importance: High → Critical
assignee: nobody → Jeff Oliver (jeffrey-oliver)
milestone: none → 0.3
Changed in gtg:
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor) on 2012-02-13
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers