From: Paweł Paprota Date: Sun, 13 Apr 2008 17:27:48 +0000 (+0200) Subject: Let's play it safe when restoring state in select_node. X-Git-Url: https://repo.or.cz/w/straw.git/commitdiff_plain/10e21c3b415a981b4b70b7c716ce68559dbf596c Let's play it safe when restoring state in select_node. --- 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: