From df961cc509187de07340ab53e5253cf4882d1c91 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 8 Jan 2013 10:32:41 +0900 Subject: [PATCH] remember import mode --- aqt/importing.py | 2 ++ aqt/profiles.py | 1 + 2 files changed, 3 insertions(+) diff --git a/aqt/importing.py b/aqt/importing.py index 6050636a1..e002d1ac3 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -70,6 +70,7 @@ class ImportDialog(QDialog): self.onDelimiter) self.updateDelimiterButtonText() self.frm.allowHTML.setChecked(self.mw.pm.profile.get('allowHTML', False)) + self.frm.importMode.setCurrentIndex(self.mw.pm.profile.get('importMode', 0)) self.exec_() def setupOptions(self): @@ -137,6 +138,7 @@ you can enter it here. Use \\t to represent tab."""), _("The first field of the note type must be mapped.")) return self.importer.importMode = self.frm.importMode.currentIndex() + self.mw.pm.profile['importMode'] = self.importer.importMode self.importer.allowHTML = self.frm.allowHTML.isChecked() self.mw.pm.profile['allowHTML'] = self.importer.allowHTML did = self.deck.selectedId() diff --git a/aqt/profiles.py b/aqt/profiles.py index 9dfc1bfa6..f16c81c35 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -49,6 +49,7 @@ profileConf = dict( autoSync=True, # importing allowHTML=False, + importMode=0, ) class ProfileManager(object):