Let's play it safe when restoring state in select_node.
authorPaweł Paprota <ppawel@fastmail.fm>
Sun, 13 Apr 2008 17:27:48 +0000 (13 19:27 +0200)
committerPaweł Paprota <ppawel@fastmail.fm>
Sun, 20 Apr 2008 16:45:48 +0000 (20 18:45 +0200)
straw/FeedListView.py

index 6f30140..dec017e 100644 (file)
@@ -451,6 +451,9 @@ class FeedsView(MVP.WidgetView):
                 self._widget.expand_row(path, False)
 
     def select_node(self, id):
+        if not id in self.model.tv_nodes:
+            return
+
         path = self.model.tv_nodes[id].path
 
         if not path: