Fix Media editor when using double click the preview of added media (#752)
Fixes #10923
This commit is contained in:
@@ -245,6 +245,7 @@ class EditMedia(EditPrimary):
|
|||||||
self.view_media(obj)
|
self.view_media(obj)
|
||||||
|
|
||||||
def view_media(self, obj):
|
def view_media(self, obj):
|
||||||
|
if self.obj.handle:
|
||||||
ref_obj = self.dbstate.db.get_media_from_handle(self.obj.handle)
|
ref_obj = self.dbstate.db.get_media_from_handle(self.obj.handle)
|
||||||
|
|
||||||
if ref_obj:
|
if ref_obj:
|
||||||
|
Reference in New Issue
Block a user