GTG

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

Bug #537776 reported by Jeff Oliver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Critical
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
    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.

Related branches

Revision history for this message
Jeff Oliver (jeffrey-oliver) wrote :

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

Revision history for this message
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)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.