Comment 12 for bug 189543

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Bug was an incorrect implementation of TreeModelIface (get_iter would never stop returning iterators)

Fix is:
diff --git a/dfeet/introspect_data.py b/dfeet/introspect_data.py
index f68ed19..df5ad85 100644
--- a/dfeet/introspect_data.py
+++ b/dfeet/introspect_data.py
@@ -51,6 +51,8 @@ class Node:
         return self.child_list.index(child)

     def on_get_iter(self, path):
+ if path[0] >= len(self.child_list):
+ return None
         op = self.child_list[path[0]]
         if len(path) == 1:
             return op

Uploaded to Lucid (needs approval to be released)