reuse existing use count in note types screen

This commit is contained in:
Damien Elmes 2020-05-04 15:46:10 +10:00
parent ce104d16a3
commit 36c1d1cf8c

View file

@ -107,7 +107,8 @@ class Models(QDialog):
if len(self.models) < 2:
showInfo(_("Please add another note type first."), parent=self)
return
if self.mm.useCount(self.model):
idx = self.form.modelsList.currentRow()
if self.models[idx].use_count:
msg = _("Delete this note type and all its cards?")
else:
msg = _("Delete this unused note type?")