Commit 17621919 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

DataForm: Fix ListMutliTreeView regression

Fixes #10354
parent 305731ca
......@@ -426,17 +426,17 @@ def __init__(self, field, multi_field):
def _toggled(self, _renderer, path):
iter_ = self._store.get_iter(path)
current_value = self._store[iter_][2]
self._store.set_value(iter_, 2, not current_value)
current_value = self._store[iter_][3]
self._store.set_value(iter_, 3, not current_value)
self._set_values()
self._multi_field.validate()
def _set_values(self):
values = []
for row in self.get_model():
if not row[2]:
if not row[3]:
continue
values.append(row[1])
values.append(row[2])
self._field.values = values
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment