disable rather than hide drop down in clayout cloze case

This commit is contained in:
Damien Elmes 2017-08-11 21:04:17 +10:00
parent ba16b8714b
commit 75f58b86d6

View File

@ -91,7 +91,7 @@ class CardLayout(QDialog):
combo.clear()
combo.addItems(self._templateNameIncludingOrdinal(t) for t in self.model['tmpls'])
combo.setCurrentIndex(self.ord)
combo.setVisible(not self._isCloze())
combo.setEnabled(not self._isCloze())
self.redrawing = False
def _templateNameIncludingOrdinal(self, tmpl):