Edit book: Fix modified indicator on images not working correctly when replacing the image

This commit is contained in:
Kovid Goyal 2022-10-30 08:50:11 +05:30
parent 75bda0cd3a
commit 57a3641e54
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -165,7 +165,7 @@ class Editor(QMainWindow):
def replace_data(self, raw, only_if_different=True): def replace_data(self, raw, only_if_different=True):
# We ignore only_if_different as it is useless in our case, and # We ignore only_if_different as it is useless in our case, and
# there is no easy way to check two images for equality # 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): def apply_settings(self, prefs=None, dictionaries_changed=False):
pass pass