mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix rewind_savepoint() not working
This commit is contained in:
parent
17f6f40fde
commit
89c33c3713
@ -57,7 +57,7 @@ class GlobalUndoHistory(object):
|
||||
revert to state before creating savepoint. '''
|
||||
if self.pos > 0 and self.pos == len(self.states) - 1:
|
||||
self.pos -= 1
|
||||
cleanup(self.states.pop())
|
||||
cleanup([self.states.pop().container])
|
||||
ans = self.current_container
|
||||
ans.message = None
|
||||
return ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user