summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-28 14:34:37 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-28 14:34:37 +0200
commit9e73f3da005d355b8102684dd1bc448f3b5c325b (patch)
tree655f9f3fd23290f0838c887cd3076803f30ceb5d
parentbcb7991f3ffde3e1a6c4aa18ec18b07519ee66a4 (diff)
Fix nested outlines to work again
-rw-r--r--lekha/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lekha/app.py b/lekha/app.py
index 544ff95..0e3c752 100644
--- a/lekha/app.py
+++ b/lekha/app.py
@@ -361,9 +361,9 @@ class Document(Table):
361 def outlines_populate(self, outlines, parent=None): 361 def outlines_populate(self, outlines, parent=None):
362 for outline in outlines: 362 for outline in outlines:
363 if isinstance(outline, list): 363 if isinstance(outline, list):
364 GenlistItem(oll_glic, outline, None, ELM_GENLIST_ITEM_TREE).append_to(self.ol_gl) 364 GenlistItem(oll_glic, outline, parent, ELM_GENLIST_ITEM_TREE).append_to(self.ol_gl)
365 else: 365 else:
366 GenlistItem(ol_glic, outline, None, ELM_GENLIST_ITEM_NONE, self._outline_clicked_cb, outline).append_to(self.ol_gl) 366 GenlistItem(ol_glic, outline, parent, ELM_GENLIST_ITEM_NONE, self._outline_clicked_cb, outline).append_to(self.ol_gl)
367 367
368 @staticmethod 368 @staticmethod
369 def _gl_contract_req(gl, it): 369 def _gl_contract_req(gl, it):