This commit is contained in:
Kovid Goyal 2013-08-13 14:29:41 +05:30
parent b0f30ce66a
commit b5c70f1b9b

View File

@ -332,7 +332,8 @@ class MetadataSingleDialogBase(ResizableDialog):
def cover_from_format(self, *args): def cover_from_format(self, *args):
ext = self.formats_manager.get_selected_format() ext = self.formats_manager.get_selected_format()
if ext is None: return if ext is None:
return
if ext == 'pdf': if ext == 'pdf':
return self.get_pdf_cover() return self.get_pdf_cover()
try: try:
@ -455,7 +456,6 @@ class MetadataSingleDialogBase(ResizableDialog):
if d.cover_pixmap is not None: if d.cover_pixmap is not None:
self.cover.current_val = pixmap_to_data(d.cover_pixmap) self.cover.current_val = pixmap_to_data(d.cover_pixmap)
# }}} # }}}
def apply_changes(self): def apply_changes(self):