mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
don't bring up an error if user cancels update
This commit is contained in:
parent
fe63d86386
commit
9c32ebec70
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ you can enter it here. Use \\t to represent tab."""),
|
|||
f = UpdateMap(self.parent,
|
||||
self.importer.fields(),
|
||||
self.model.fieldModels)
|
||||
if not getattr(f, "updateKey", None):
|
||||
# user cancelled
|
||||
return
|
||||
self.importer.updateKey = f.updateKey
|
||||
self.doImport(True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue