default to tab if user cancels delimeter selection

This commit is contained in:
Damien Elmes 2012-08-23 20:08:57 +09:00
parent 557c8e9ce4
commit 79d4d4d5c6

View file

@ -99,7 +99,7 @@ class ImportDialog(QDialog):
By default, Anki will detect the character between fields, such as By default, Anki will detect the character between fields, such as
a tab, comma, and so on. If Anki is detecting the character incorrectly, a tab, comma, and so on. If Anki is detecting the character incorrectly,
you can enter it here. Use \\t to represent tab."""), you can enter it here. Use \\t to represent tab."""),
self, help="importing") self, help="importing") or "\t"
str = str.replace("\\t", "\t") str = str.replace("\\t", "\t")
str = str.encode("ascii") str = str.encode("ascii")
self.hideMapping() self.hideMapping()