mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #819 (boss.py : show_current_diff allow_revert parameter wasn't used)
This commit is contained in:
parent
92232ad34a
commit
c5465e8aa4
@ -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
|
: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()
|
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))
|
d.revert_requested.connect(partial(self.revert_requested, self.global_undo.previous_container))
|
||||||
other = to_container or self.global_undo.previous_container
|
other = to_container or self.global_undo.previous_container
|
||||||
d.container_diff(other, self.global_undo.current_container,
|
d.container_diff(other, self.global_undo.current_container,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user