mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Hydraulic structure: fix crashing bug happening when we select the section combobox without selecting a reach in the first combobox
This commit is contained in:
1 parent
32db5795da
commit
d6aeb5df21
1 file changed
+3
@@ -96,6 +96,9 @@ class ComboBoxDelegate(QItemDelegate):
|
||||
reach = self._data.hydraulic_structures\
|
||||
.get_for_enabled_reaches(index.row())\
|
||||
.input_reach
|
||||
if reach is None:
|
||||
value = None
|
||||
else:
|
||||
profiles = list(
|
||||
filter(
|
||||
lambda p: p.display_name() == text,
|
||||
|
||||
Reference in new issue
Block a user