From 59efd0a9c71af7f5200209507868be5e3837a5b9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Feb 2014 13:54:21 +0530 Subject: [PATCH] Edit book: Fix editor not marking the book as modified when doing a Replace All that does not affect any currently open files. --- src/calibre/gui2/tweak_book/boss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 99fa96c094..652b6617b4 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -791,6 +791,8 @@ class Boss(QObject): count = do_all() if count == 0: self.rewind_savepoint() + else: + self.set_modified() return if action == 'count': if marked: