fix crash when there is no thumbnail on a video (closes #708)

This commit is contained in:
Romain Bignon 2011-10-11 19:27:34 +02:00
commit ce52d2967e

View file

@ -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))