From ffb3b1e23236bf7f793d79ae8a46d3a7cc80be32 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 28 Dec 2012 13:01:28 +0000 Subject: [PATCH] 6123: Index into undohistory, correct fail on older gobject svn: r20859 --- gramps/gui/undohistory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/undohistory.py b/gramps/gui/undohistory.py index a1ea2aabb..7dbac3fab 100644 --- a/gramps/gui/undohistory.py +++ b/gramps/gui/undohistory.py @@ -121,7 +121,7 @@ class UndoHistory(ManagedWindow): (model, node) = self.selection.get_selected() if not node or len(self.model) == 1: return - path = self.model.get_path(node) + path = self.model.get_path(node).get_indices() start = min(path[0], self.undodb.undo_count) end = max(path[0], self.undodb.undo_count) @@ -158,7 +158,7 @@ class UndoHistory(ManagedWindow): (model, node) = self.selection.get_selected() if not node: return - path = self.model.get_path(node) + path = self.model.get_path(node).get_indices() nsteps = path[0] - self.undodb.undo_count - 1 self._move(nsteps or -1) @@ -167,7 +167,7 @@ class UndoHistory(ManagedWindow): (model, node) = self.selection.get_selected() if not node: return - path = self.model.get_path(node) + path = self.model.get_path(node).get_indices() nsteps = path[0] - self.undodb.undo_count self._move(nsteps or 1)