Edit Book: Fix a typo that would cause an error when a global operation like find/replace or polishing fails. Fixes #1275366 ['Edit Book' corrupts epub when find & replace fails](https://bugs.launchpad.net/calibre/+bug/1275366)

This commit is contained in:
Kovid Goyal 2014-02-02 08:21:48 +05:30
parent ee6f85d71c
commit 7704a43d74

View File

@ -116,7 +116,7 @@ class GlobalUndoHistory(QAbstractListModel):
self.pos -= 1
cleanup([self.states.pop().container])
self.endRemoveRows()
self.dataChanged.emit(self.index(self.pos))
self.dataChanged.emit(self.index(self.pos), self.index(self.pos))
ans = self.current_container
ans.message = None
return ans