Commit 592c2c9a authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

HS: Minor fix.

Showing with 3 additions and 3 deletions
+3 -3
...@@ -118,8 +118,8 @@ class HydraulicStructure(SQLSubModel): ...@@ -118,8 +118,8 @@ class HydraulicStructure(SQLSubModel):
) )
hs.enabled = enabled hs.enabled = enabled
hs.input_kp = input_kp hs.input_kp = input_kp if input_kp != -1 else None
hs.output_kp = output_kp hs.output_kp = output_kp if output_kp != -1 else None
hs.input_reach, hs.output_reach = reduce( hs.input_reach, hs.output_reach = reduce(
lambda acc, n: ( lambda acc, n: (
......
...@@ -80,7 +80,7 @@ class ComboBoxDelegate(QItemDelegate): ...@@ -80,7 +80,7 @@ class ComboBoxDelegate(QItemDelegate):
val val
) )
self.editor.setCurrentText(index.data(Qt.DisplayRole)) self.editor.setCurrentText(str(index.data(Qt.DisplayRole)))
return self.editor return self.editor
def setEditorData(self, editor, index): def setEditorData(self, editor, index):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment