mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Edit book: Fix open image editors not being updated when image file is replaced
This commit is contained in:
parent
2d263573cb
commit
2d58cae342
@ -309,6 +309,7 @@ class Canvas(QWidget):
|
||||
self.current_image = i = self.original_image = (
|
||||
QImage.fromData(data, format=fmt) if fmt else QImage.fromData(data))
|
||||
self.is_valid = not i.isNull()
|
||||
self.current_scaled_pixmap = None
|
||||
self.update()
|
||||
self.image_changed.emit(self.current_image)
|
||||
|
||||
@ -679,6 +680,7 @@ class Canvas(QWidget):
|
||||
p.end()
|
||||
# }}}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication([])
|
||||
with open(sys.argv[-1], 'rb') as f:
|
||||
|
Loading…
x
Reference in New Issue
Block a user