mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
make sure field map is based on current model
This commit is contained in:
parent
972070bbaf
commit
062f4e604a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue