Skip to content

Commit

Permalink
fix deprecation warning in modelchooser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Aug 4, 2021
1 parent 5de3918 commit 57f3d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt/aqt/modelchooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def onModelChange(self) -> None:
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,
Expand Down

0 comments on commit 57f3d30

Please sign in to comment.