7435: Revert b38e59 to fix error when creating new media object
This commit is contained in:
parent
9c637e57c7
commit
3218218e23
@ -295,11 +295,7 @@ class EditMedia(EditPrimary):
|
||||
return
|
||||
|
||||
path = conv_to_unicode(self.file_path.get_text())
|
||||
ref_obj = self.dbstate.db.get_object_from_handle(self.obj.handle)
|
||||
if ref_obj:
|
||||
media_path = media_path_full(self.dbstate.db,
|
||||
ref_obj.get_path())
|
||||
if os.path.exists(os.path.join(os.path.dirname(media_path), path)):
|
||||
if os.path.isfile(path):
|
||||
self.determine_mime()
|
||||
else:
|
||||
msg1 = _("There is no media matching the current path value!")
|
||||
|
Loading…
Reference in New Issue
Block a user