mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 21:03:36 +02:00
Revert change to how Metadata.thumbnail is interpreted in library.models
This commit is contained in:
parent
b01b603358
commit
240c9428f5
1 changed files with 2 additions and 2 deletions
|
|
@ -1055,8 +1055,8 @@ def current_changed(self, current, previous):
|
|||
img = QImage()
|
||||
if hasattr(cdata, 'image_path'):
|
||||
img.load(cdata.image_path)
|
||||
else:
|
||||
img.loadFromData(cdata[2])
|
||||
elif cdata:
|
||||
img.loadFromData(cdata)
|
||||
if img.isNull():
|
||||
img = self.default_image
|
||||
data['cover'] = img
|
||||
|
|
|
|||
Loading…
Reference in a new issue