mirror of https://gitlab.com/pamhyr/pamhyr2
BC: Fix long type translate crash.
parent
ccbbc83502
commit
595eb29c42
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue