mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
make sure to return newly created media path
This commit is contained in:
parent
4f41d4b0bb
commit
3e739e7698
1 changed files with 1 additions and 1 deletions
|
|
@ -900,7 +900,7 @@ class FactEditor(object):
|
|||
|
||||
def _addMedia(self, file):
|
||||
try:
|
||||
self.deck.addMedia(file)
|
||||
return self.deck.addMedia(file)
|
||||
except (IOError, OSError), e:
|
||||
ui.utils.showWarning(_("Unable to add media: %s") % unicode(e),
|
||||
parent=self.parent)
|
||||
|
|
|
|||
Loading…
Reference in a new issue