HS: Basic: Display set type question only if previous type is not ND.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-24 10:22:58 +01:00
1 parent 00f0e39eda
commit 82ab7b5429
1 file changed
+3 -1
@@ -136,7 +136,9 @@ class TableModel(PamhyrTableModel):
) )
) )
elif self._headers[column] == "type": elif self._headers[column] == "type":
if self._question_set_type(): old_type = self._data.basic_structure(row).type
if old_type == "ND" or self._question_set_type():
key = next( key = next(
k for k, v in self._long_types.items() k for k, v in self._long_types.items()
if v == value if v == value