fix unicode error on export (#904)

This commit is contained in:
Damien Elmes 2013-06-10 15:19:44 +09:00
parent 9d173f4c83
commit c7b31d28e4

View File

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