diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index a996e728f..ddd20f6d0 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -4804,8 +4804,6 @@ class ThumbnailPreviewPage(BasePage): self.photo_keys = sorted(self.report.obj_dict[MediaObject], key=lambda x: SORT_KEY(self.dbase_.get_object_from_handle(x).desc)) - if not self.photo_keys: - return media_list = [] for person_handle in self.photo_keys: @@ -4817,11 +4815,9 @@ class ThumbnailPreviewPage(BasePage): if self.create_thumbs_only: copy_thumbnail(self.report, person_handle, photo) - if not media_list: - return media_list.sort(key=lambda x: SORT_KEY(x[0])) - # reate thumbnail preview page... + # create thumbnail preview page... of, sio = self.report.create_file("thumbnails") thumbnailpage, head, body = self.write_header(_("Thumbnails"))