fix unicode error on export

This commit is contained in:
Damien Elmes 2013-05-24 10:32:21 +09:00
parent c758c8623b
commit b151b049f5

View File

@ -72,7 +72,7 @@ class ExportDialog(QDialog):
deck_name = self.decks[self.frm.deck.currentIndex()] deck_name = self.decks[self.frm.deck.currentIndex()]
deck_name = re.sub('[\\\\/?<>:*|"^]', '_', deck_name) deck_name = re.sub('[\\\\/?<>:*|"^]', '_', deck_name)
filename = os.path.join(aqt.mw.pm.base, filename = os.path.join(aqt.mw.pm.base,
'{0}{1}'.format(deck_name, self.exporter.ext)) u'{0}{1}'.format(deck_name, self.exporter.ext))
while 1: while 1:
file = getSaveFile(self, _("Export"), "export", file = getSaveFile(self, _("Export"), "export",
self.exporter.key, self.exporter.ext, self.exporter.key, self.exporter.ext,