Commit 0ffb6869 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Fix launching in column mode by reverting 'unnecessary lambda' fix

self.todolist may not be present; it could be None. This is the case
when the list formatter is instantiated from a TodoWidget in the column
UI, which passes None for the todo list.
parent 4f6c010d
......@@ -206,7 +206,7 @@ class ListFormatParser(object):
'T': lambda t: humanize_date(t.start_date()) if t.start_date() else '',
# unique text ID
'u': self.todolist.uid,
'u': self.todolist.uid if self.todolist else lambda _ : '',
# unique text ID, padded with spaces
'U': lambda t: _filler(self.todolist.uid(t),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment