mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
as tmpfile() returns unicode now, shouldn't try to convert to unicode again
This commit is contained in:
parent
526578a11f
commit
1788cd2fac
1 changed files with 1 additions and 2 deletions
|
@ -1051,8 +1051,7 @@ class EditorWebView(AnkiWebView):
|
|||
|
||||
def _processImage(self, mime):
|
||||
im = QImage(mime.imageData())
|
||||
name = namedtmp("paste-%d" % im.cacheKey())
|
||||
uname = unicode(name, sys.getfilesystemencoding())
|
||||
uname = namedtmp("paste-%d" % im.cacheKey())
|
||||
if self.editor.mw.pm.profile.get("pastePNG", False):
|
||||
ext = ".png"
|
||||
im.save(uname+ext, None, 50)
|
||||
|
|
Loading…
Reference in a new issue