mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
use unicode name when adding to media db
This commit is contained in:
parent
5b0b2e63ad
commit
b65fd5f6be
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,7 @@ class FactEdit(QTextEdit):
|
|||
(fd, name) = tempfile.mkstemp(suffix=".jpg")
|
||||
uname = unicode(name, sys.getfilesystemencoding())
|
||||
im.save(uname, None, 95)
|
||||
self.parent._addPicture(name, widget=self)
|
||||
self.parent._addPicture(uname, widget=self)
|
||||
return
|
||||
if source.hasHtml():
|
||||
self.insertHtml(self.simplifyHTML(unicode(source.html())))
|
||||
|
|
Loading…
Reference in a new issue