Edit book: Do not create savepoints when no changes are performed by automated tools such as smarten punctuation, remove unused css etc.

This commit is contained in:
Kovid Goyal 2014-02-02 12:03:21 +05:30
parent 09c02b446c
commit 2f2723f6b6

View File

@ -375,6 +375,8 @@ class Boss(QObject):
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:
self.rewind_savepoint()
d = QDialog(self.gui)
d.l = QVBoxLayout()
d.setLayout(d.l)