6123: Index into undohistory, correct fail on older gobject
svn: r20860
This commit is contained in:
parent
5fb66f3918
commit
91abba9d20
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user