From 8ceef95199d50c3ec06619c75dd21232bf717b93 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Oct 2012 17:52:35 +0900 Subject: [PATCH] allow duplicates in import --- aqt/importing.py | 2 +- designer/importing.ui | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/aqt/importing.py b/aqt/importing.py index aaf731bec..9e228b5b7 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -138,7 +138,7 @@ you can enter it here. Use \\t to represent tab."""), showWarning( _("The first field of the note type must be mapped.")) return - self.importer.update = self.frm.updateNotes.isChecked() + self.importer.importMode = self.frm.importMode.currentIndex() did = self.deck.selectedId() if did != self.importer.model['did']: self.importer.model['did'] = did diff --git a/designer/importing.ui b/designer/importing.ui index 632f43033..fa7e2cd23 100644 --- a/designer/importing.ui +++ b/designer/importing.ui @@ -52,13 +52,22 @@ - - - Update existing notes when first field matches - - - true - + + + + Update existing notes when first field matches + + + + + Ignore lines where first field matches existing note + + + + + Import even if existing note has same first field + + @@ -118,7 +127,7 @@ 0 0 402 - 236 + 229