mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix unicode error on export (#904)
This commit is contained in:
parent
9d173f4c83
commit
c7b31d28e4
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ def getSaveFile(parent, title, dir_description, key, ext, fname=None):
|
||||||
base = aqt.mw.pm.profile.get(config_key, aqt.mw.pm.base)
|
base = aqt.mw.pm.profile.get(config_key, aqt.mw.pm.base)
|
||||||
path = os.path.join(base, fname)
|
path = os.path.join(base, fname)
|
||||||
file = unicode(QFileDialog.getSaveFileName(
|
file = unicode(QFileDialog.getSaveFileName(
|
||||||
parent, title, path, "{0} (*{1})".format(key, ext),
|
parent, title, path, u"{0} (*{1})".format(key, ext),
|
||||||
options=QFileDialog.DontConfirmOverwrite))
|
options=QFileDialog.DontConfirmOverwrite))
|
||||||
if file:
|
if file:
|
||||||
# add extension
|
# add extension
|
||||||
|
|
Loading…
Reference in a new issue