Fix #819 (boss.py : show_current_diff allow_revert parameter wasn't used)

This commit is contained in:
Kovid Goyal 2018-02-27 10:38:38 +05:30
parent 92232ad34a
commit c5465e8aa4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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,