fix unicode error on export (#904)
This commit is contained in:
parent
9d173f4c83
commit
c7b31d28e4
@ -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)
|
||||
path = os.path.join(base, fname)
|
||||
file = unicode(QFileDialog.getSaveFileName(
|
||||
parent, title, path, "{0} (*{1})".format(key, ext),
|
||||
parent, title, path, u"{0} (*{1})".format(key, ext),
|
||||
options=QFileDialog.DontConfirmOverwrite))
|
||||
if file:
|
||||
# add extension
|
||||
|
Loading…
Reference in New Issue
Block a user