debug crash when double clic on PK combobox when no reach is selected (DIF window)

disable_edition_parent_scenario
Dylan Jeannin 2026-05-11 13:49:54 +02:00
parent faff877c80
commit a8b260ad38
1 changed files with 6 additions and 3 deletions

View File

@ -62,9 +62,12 @@ class ComboBoxDelegate(QItemDelegate):
if self._mode == "rk":
reach_id = self._ic_spec_lst[index.row()].reach
reach = next(filter(
reach = next(
filter(
lambda edge: edge.id == reach_id, self._data.edges()
))
),
None
)
if reach_id is not None:
val = list(