fix deprecation warning in modelchooser.py

This commit is contained in:
Damien Elmes 2021-08-04 12:05:11 +10:00
parent 5de3918dbf
commit 57f3d300bb

View file

@ -76,7 +76,7 @@ class ModelChooser(QHBoxLayout):
edit = QPushButton(tr.qt_misc_manage(), clicked=self.onEdit) # type: ignore
def nameFunc() -> List[str]:
return sorted(self.deck.models.all_names())
return [nt.name for nt in self.deck.models.all_names_and_ids()]
ret = StudyDeck(
self.mw,