mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
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:
parent
09c02b446c
commit
2f2723f6b6
@ -375,6 +375,8 @@ class Boss(QObject):
|
|||||||
self.apply_container_update_to_gui()
|
self.apply_container_update_to_gui()
|
||||||
from calibre.ebooks.markdown import markdown
|
from calibre.ebooks.markdown import markdown
|
||||||
report = markdown('# %s\n\n'%self.current_metadata.title + '\n\n'.join(report), output_format='html4')
|
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 = QDialog(self.gui)
|
||||||
d.l = QVBoxLayout()
|
d.l = QVBoxLayout()
|
||||||
d.setLayout(d.l)
|
d.setLayout(d.l)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user