mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC: Fix long type translate crash.
This commit is contained in:
1 parent
ccbbc83502
commit
595eb29c42
1 file changed
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user