From ac4213db94ccaf52e49efd1e548c58c4fdb7d888 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 2 Feb 2010 15:31:48 +0000 Subject: [PATCH] Fix moving to bookmark when object is the first in a flat view svn: r14193 --- src/gui/views/listview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/views/listview.py b/src/gui/views/listview.py index 6a6f6b722..c79c0513a 100644 --- a/src/gui/views/listview.py +++ b/src/gui/views/listview.py @@ -416,7 +416,7 @@ class ListView(NavigationView): self.list.expand_row(expand_path, False) path = self.model.on_get_path(node) - if path: + if path is not None: self.selection.unselect_all() self.selection.select_path(path) self.list.scroll_to_cell(path, None, 1, 0.5, 0)