From c5465e8aa450b489fb08cd4b9746c83638b5eeea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Feb 2018 10:38:38 +0530 Subject: [PATCH] Fix #819 (boss.py : show_current_diff allow_revert parameter wasn't used) --- src/calibre/gui2/tweak_book/boss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 978f82b480..2ab6c9c8db 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -766,7 +766,8 @@ class Boss(QObject): :param to_container: A container object to compare the current container to. If None, the previously checkpointed container is used ''' self.commit_all_editors_to_container() - d = self.create_diff_dialog() + k = {} if allow_revert else {'revert_msg': None} + d = self.create_diff_dialog(**k) d.revert_requested.connect(partial(self.revert_requested, self.global_undo.previous_container)) other = to_container or self.global_undo.previous_container d.container_diff(other, self.global_undo.current_container,