mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -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):
|
def _addMedia(self, file):
|
||||||
try:
|
try:
|
||||||
self.deck.addMedia(file)
|
return self.deck.addMedia(file)
|
||||||
except (IOError, OSError), e:
|
except (IOError, OSError), e:
|
||||||
ui.utils.showWarning(_("Unable to add media: %s") % unicode(e),
|
ui.utils.showWarning(_("Unable to add media: %s") % unicode(e),
|
||||||
parent=self.parent)
|
parent=self.parent)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue