* src/EditPerson.py, src/AddMedia.py, src/ImageSelect.py, src/ReportUtils.py, src/SelectObject.py, src/plugins/Ancestors.py, src/plugins/IndivComplete.py, src/plugins/IndivSummary.py, src/plugins/WebPage.py, src/plugins/WriteCD.py: Dont crash with "note only" media object.

svn: r4594
This commit is contained in:
Martin Hawlisch
2005-05-14 13:19:56 +00:00
parent 8e7e8155f7
commit fbefcf1eca
11 changed files with 31 additions and 19 deletions

View File

@@ -116,7 +116,7 @@ class SelectObject:
the_type = Utils.get_mime_description(obj.get_mime_type())
path = obj.get_path()
if the_type[0:5] == "image":
if the_type and the_type[0:5] == "image":
image = ImgManip.get_thumbnail_image(obj.get_path())
self.preview.set_from_pixbuf(image)
else: