BC: Fix long type translate crash.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-11-20 16:15:43 +01:00
1 parent ccbbc83502
commit 595eb29c42
1 file changed
+4 -3
+4 -3
View File
@@ -115,13 +115,14 @@ class ComboBoxDelegate(QItemDelegate):
class TableModel(PamhyrTableModel):
def __init__(self, **kwargs):
super(TableModel, self).__init__(**kwargs)
def __init__(self, trad = None, **kwargs):
self._trad = trad
self._long_types = {}
if self._trad is not None:
self._long_types = self._trad.get_dict("long_types")
super(TableModel, self).__init__(trad = trad, **kwargs)
def _setup_lst(self):
self._lst = self._data.boundary_condition
self._tab = self._opt_data