Return an empty list when the treeview has no selection
Closes #11960 --HG-- branch : 6.0
This commit is contained in:
1 parent
3916ceafdc
commit
f258f4a7ba
1 file changed
+2
-1
@@ -1165,7 +1165,8 @@ class ViewTree(View):
|
||||
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):
|
||||
|
||||
Reference in new issue
Block a user