From 10e21c3b415a981b4b70b7c716ce68559dbf596c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Paprota?= Date: Sun, 13 Apr 2008 19:27:48 +0200 Subject: [PATCH] Let's play it safe when restoring state in select_node. --- straw/FeedListView.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/straw/FeedListView.py b/straw/FeedListView.py index 6f30140..dec017e 100644 --- a/straw/FeedListView.py +++ b/straw/FeedListView.py @@ -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: -- 2.11.4.GIT