mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
ee6f85d71c
commit
7704a43d74
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user