don't bring up an error if user cancels update

This commit is contained in:
Damien Elmes 2010-12-15 19:04:01 +09:00
parent fe63d86386
commit 9c32ebec70

View file

@ -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)