Nicolas Évrard pushed to branch branch/6.0 at Tryton / Tryton
Commits:
9056c806 by Nicolas Évrard at 2023-01-03T17:20:41+01:00
Return an empty list when the treeview has no selection
Closes #11960
- - - - -
1 changed file:
- tryton/tryton/gui/window/view_form/view/list.py
Changes:
=====================================
tryton/tryton/gui/window/view_form/view/list.py
=====================================
@@ -1165,7 +1165,8 @@
records.append(model.get_value(iter_, 0))
records = []
sel = self.treeview.get_selection()
- sel.selected_foreach(_func_sel_get, records)
+ if sel is not None:
+ sel.selected_foreach(_func_sel_get, records)
return records
def get_selected_paths(self):
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/9056c806bb434d848223bd009d1946fa83e623ff
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/9056c806bb434d848223bd009d1946fa83e623ff
You're receiving this email because of your account on foss.heptapod.net.