mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
debug crash when double clic on PK combobox when no reach is selected (DIF window)
This commit is contained in:
1 parent
faff877c80
commit
a8b260ad38
1 file changed
+6
-3
@@ -62,9 +62,12 @@ class ComboBoxDelegate(QItemDelegate):
|
|||||||
if self._mode == "rk":
|
if self._mode == "rk":
|
||||||
reach_id = self._ic_spec_lst[index.row()].reach
|
reach_id = self._ic_spec_lst[index.row()].reach
|
||||||
|
|
||||||
reach = next(filter(
|
reach = next(
|
||||||
lambda edge: edge.id == reach_id, self._data.edges()
|
filter(
|
||||||
))
|
lambda edge: edge.id == reach_id, self._data.edges()
|
||||||
|
),
|
||||||
|
None
|
||||||
|
)
|
||||||
|
|
||||||
if reach_id is not None:
|
if reach_id is not None:
|
||||||
val = list(
|
val = list(
|
||||||
|
|||||||
Reference in new issue
Block a user