"-" + Enter would raise an error in Task Editor

Reported by Song Yangyu on 2012-03-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Medium
Izidor Matušov

Bug Description

GTG revno: 1140

I think we designed this method for the easy key-in of the subtask: inside the task editor, for any line starting with -, pressing enter would automatically create new subtask.

But there's a bug: simply key in "-", then press enter key.
You can see the error.

Debug Trace:
2012-03-28 05:01:49,844 - DEBUG - gtg:core_main_init:135 - Debug output enabled.
2012-03-28 05:01:49,866 - DEBUG - __init__:__init__:68 - Backends found: ['backend_tomboy', 'backend_gnote', 'backend_evolution', 'backend_identica', 'backend_rtm', 'backend_launchpad', 'backend_twitter', 'backend_mantis', 'backend_localfile']
2012-03-28 05:01:50,078 - DEBUG - task:add_child:381 - adding child 9edad19b-6b60-48e6-acbe-6c6b899a08f4 to task 190024d9-f092-40d1-a388-65344a7f2fe3
2012-03-28 05:01:50,080 - DEBUG - task:add_child:381 - adding child 3ce48ef8-eec5-43a8-abbf-b990df20df9f to task 190024d9-f092-40d1-a388-65344a7f2fe3
2012-03-28 05:01:50,189 - DEBUG - manager:__init__:91 - Manager initialization finished
2012-03-28 05:01:50,190 - DEBUG - manager:open_browser:113 - Browser is open
2012-03-28 05:01:50,238 - DEBUG - datastore:new_tag:134 - *** tag added @GSoC ***
2012-03-28 05:01:50,259 - DEBUG - datastore:new_tag:134 - *** tag added @Bug ***
2012-03-28 05:01:53,686 - DEBUG - browser:on_task_treeview_button_press_event:955 - Received button event #1 at 135,36
2012-03-28 05:01:53,798 - DEBUG - browser:on_task_treeview_button_press_event:955 - Received button event #1 at 135,36
2012-03-28 05:01:53,833 - DEBUG - browser:on_task_treeview_button_press_event:955 - Received button event #1 at 135,36
Traceback (most recent call last):
  File "/home/songyy/Desktop/gtg/GTG/gtk/editor/taskview.py", line 1174, in _insert_at_cursor
    self.insert_indent(self.buff, end_i, 1, enter=True)
  File "/home/songyy/Desktop/gtg/GTG/gtk/editor/taskview.py", line 961, in insert_indent
    list_stag = start_i.get_toggled_tags(False)
AttributeError: 'bool' object has no attribute 'get_toggled_tags'

Izidor Matušov (izidor) wrote :

Fixed in rev 1142.

Changed in gtg:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Izidor Matušov (izidor)
milestone: none → 0.3
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