From 57a3641e5456b90e4a56c5c8425ae118982db8af Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Oct 2022 08:50:11 +0530 Subject: [PATCH] Edit book: Fix modified indicator on images not working correctly when replacing the image --- src/calibre/gui2/tweak_book/editor/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/image.py b/src/calibre/gui2/tweak_book/editor/image.py index 40b5cb4e18..283b4adadc 100644 --- a/src/calibre/gui2/tweak_book/editor/image.py +++ b/src/calibre/gui2/tweak_book/editor/image.py @@ -165,7 +165,7 @@ class Editor(QMainWindow): def replace_data(self, raw, only_if_different=True): # We ignore only_if_different as it is useless in our case, and # there is no easy way to check two images for equality - self.data = raw + self.canvas.load_image(raw) def apply_settings(self, prefs=None, dictionaries_changed=False): pass