mirror of https://gitlab.com/pamhyr/pamhyr2
HS: Minor fix.
parent
ce45776a63
commit
592c2c9a72
|
|
@ -118,8 +118,8 @@ class HydraulicStructure(SQLSubModel):
|
|||
)
|
||||
|
||||
hs.enabled = enabled
|
||||
hs.input_kp = input_kp
|
||||
hs.output_kp = output_kp
|
||||
hs.input_kp = input_kp if input_kp != -1 else None
|
||||
hs.output_kp = output_kp if output_kp != -1 else None
|
||||
|
||||
hs.input_reach, hs.output_reach = reduce(
|
||||
lambda acc, n: (
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class ComboBoxDelegate(QItemDelegate):
|
|||
val
|
||||
)
|
||||
|
||||
self.editor.setCurrentText(index.data(Qt.DisplayRole))
|
||||
self.editor.setCurrentText(str(index.data(Qt.DisplayRole)))
|
||||
return self.editor
|
||||
|
||||
def setEditorData(self, editor, index):
|
||||
|
|
|
|||
Loading…
Reference in New Issue