fix crash when there is no thumbnail on a video (closes #708)
This commit is contained in:
parent
dc38eb7d4c
commit
ce52d2967e
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class MiniVideo(QFrame):
|
|||
if not backend:
|
||||
return
|
||||
|
||||
if video.thumbnail.data:
|
||||
if video.thumbnail and video.thumbnail.data:
|
||||
img = QImage.fromData(video.thumbnail.data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue