HS: Minor fix.

setup.py
Pierre-Antoine Rouby 2023-12-12 14:44:58 +01:00
parent ce45776a63
commit 592c2c9a72
2 changed files with 3 additions and 3 deletions

View File

@ -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: (

View File

@ -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):