mirror of https://gitlab.com/pamhyr/pamhyr2
BC: Fix status propagation to Data object.
parent
6b14ed7efe
commit
e7d14e7aa3
|
|
@ -503,10 +503,16 @@ class BoundaryCondition(SQLSubModel):
|
|||
new_0 = self._types[0](data[0].replace(",", "."))
|
||||
new_1 = self._types[1](data[1].replace(",", "."))
|
||||
|
||||
return Data(new_0, new_1)
|
||||
return Data(
|
||||
new_0, new_1,
|
||||
status=self._status
|
||||
)
|
||||
|
||||
def add(self, index: int):
|
||||
value = Data(self._default_0, self._default_1)
|
||||
value = Data(
|
||||
self._default_0, self._default_1,
|
||||
status=self._status
|
||||
)
|
||||
self._data.insert(index, value)
|
||||
self.modified()
|
||||
return value
|
||||
|
|
|
|||
Loading…
Reference in New Issue