From 5de25ec5c1b306eaebd77a76dde9505827c19604 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Apr 2014 14:36:40 +0530 Subject: [PATCH] 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. --- src/calibre/gui2/tweak_book/boss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 67c985b6fd..fc3f1cb08c 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -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: