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,