From c7b31d28e4163fdf2d24cf54448932e0b4c297db Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Jun 2013 15:19:44 +0900 Subject: [PATCH] fix unicode error on export (#904) --- aqt/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/utils.py b/aqt/utils.py index a5940cd55..ceb0380bc 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -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