parent
a3f3184fc1
commit
56e2dc69b3
@ -205,6 +205,8 @@ class EditMedia(EditPrimary):
|
|||||||
|
|
||||||
def view_media(self, obj):
|
def view_media(self, obj):
|
||||||
ref_obj = self.dbstate.db.get_object_from_handle(self.obj.handle)
|
ref_obj = self.dbstate.db.get_object_from_handle(self.obj.handle)
|
||||||
|
|
||||||
|
if ref_obj:
|
||||||
mime_type = ref_obj.get_mime_type()
|
mime_type = ref_obj.get_mime_type()
|
||||||
app = Mime.get_application(mime_type)
|
app = Mime.get_application(mime_type)
|
||||||
if app:
|
if app:
|
||||||
|
Loading…
Reference in New Issue
Block a user