BC: Fix long type translate crash.

setup.py
Pierre-Antoine Rouby 2023-11-20 16:15:43 +01:00
parent ccbbc83502
commit 595eb29c42
1 changed files with 4 additions and 3 deletions

View File

@ -115,13 +115,14 @@ class ComboBoxDelegate(QItemDelegate):
class TableModel(PamhyrTableModel): class TableModel(PamhyrTableModel):
def __init__(self, **kwargs): def __init__(self, trad = None, **kwargs):
super(TableModel, self).__init__(**kwargs) self._trad = trad
self._long_types = {} self._long_types = {}
if self._trad is not None: if self._trad is not None:
self._long_types = self._trad.get_dict("long_types") self._long_types = self._trad.get_dict("long_types")
super(TableModel, self).__init__(trad = trad, **kwargs)
def _setup_lst(self): def _setup_lst(self):
self._lst = self._data.boundary_condition self._lst = self._data.boundary_condition
self._tab = self._opt_data self._tab = self._opt_data