Fix bug in undo history dialog

svn: r20755
This commit is contained in:
Nick Hall 2012-12-03 00:49:51 +00:00
parent 222f7bc1c8
commit 987701c5fc

View File

@ -119,7 +119,7 @@ class UndoHistory(ManagedWindow):
def _selection_changed(self, obj):
(model, node) = self.selection.get_selected()
if not node:
if not node or len(self.model) == 1:
return
path = self.model.get_path(node)
start = min(path[0], self.undodb.undo_count)