Fix bug in undo history dialog
svn: r20755
This commit is contained in:
parent
222f7bc1c8
commit
987701c5fc
@ -119,7 +119,7 @@ class UndoHistory(ManagedWindow):
|
|||||||
|
|
||||||
def _selection_changed(self, obj):
|
def _selection_changed(self, obj):
|
||||||
(model, node) = self.selection.get_selected()
|
(model, node) = self.selection.get_selected()
|
||||||
if not node:
|
if not node or len(self.model) == 1:
|
||||||
return
|
return
|
||||||
path = self.model.get_path(node)
|
path = self.model.get_path(node)
|
||||||
start = min(path[0], self.undodb.undo_count)
|
start = min(path[0], self.undodb.undo_count)
|
||||||
|
Loading…
Reference in New Issue
Block a user