From 89c33c3713eaa518cab5c6cfd8210463d14ac8f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Nov 2013 12:39:29 +0530 Subject: [PATCH] Fix rewind_savepoint() not working --- src/calibre/gui2/tweak_book/undo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/undo.py b/src/calibre/gui2/tweak_book/undo.py index f9bd9ba810..ae388c56ce 100644 --- a/src/calibre/gui2/tweak_book/undo.py +++ b/src/calibre/gui2/tweak_book/undo.py @@ -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