HS: Minor fix.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-12 14:44:58 +01:00
1 parent ce45776a63
commit 592c2c9a72
2 files changed
+3 -3

No files matched your search

@@ -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: (
+1 -1
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):