make sure to return newly created media path

This commit is contained in:
Damien Elmes 2010-05-01 16:11:37 +09:00
parent 4f41d4b0bb
commit 3e739e7698

View file

@ -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)