Edit Book: Fix book being marked as modified even when no actual changes were done by various automated tools such as Smarten Punctuation, Subset Fonts, etc.

This commit is contained in:
Kovid Goyal 2014-04-07 14:36:40 +05:30
parent 625e3935ed
commit 5de25ec5c1

View File

@ -403,7 +403,8 @@ class Boss(QObject):
except:
self.rewind_savepoint()
raise
self.apply_container_update_to_gui()
if changed:
self.apply_container_update_to_gui()
from calibre.ebooks.markdown import markdown
report = markdown('# %s\n\n'%self.current_metadata.title + '\n\n'.join(report), output_format='html4')
if not changed: