mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
Merge pull request #142 from goapunk/master
Fix the lambda function for changing the mapping of the fields
This commit is contained in:
commit
6131b149da
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ you can enter it here. Use \\t to represent tab."""),
|
|||
self.grid.addWidget(QLabel(text), num, 1)
|
||||
button = QPushButton(_("Change"))
|
||||
self.grid.addWidget(button, num, 2)
|
||||
button.clicked.connect(lambda s=self,n=num: s.changeMappingNum(n))
|
||||
button.clicked.connect(lambda _, s=self,n=num: s.changeMappingNum(n))
|
||||
|
||||
def changeMappingNum(self, n):
|
||||
f = ChangeMap(self.mw, self.importer.model, self.mapping[n]).getField()
|
||||
|
|
|
|||
Loading…
Reference in a new issue