make sure field map is based on current model

This commit is contained in:
Damien Elmes 2012-03-30 00:28:35 +09:00
parent 972070bbaf
commit 062f4e604a

View file

@ -211,7 +211,7 @@ you can enter it here. Use \\t to represent tab."""),
lambda s=self,n=num: s.changeMappingNum(n))
def changeMappingNum(self, n):
f = ChangeMap(self.mw, self.model, self.mapping[n]).getField()
f = ChangeMap(self.mw, self.importer.model, self.mapping[n]).getField()
try:
# make sure we don't have it twice
index = self.mapping.index(f)