Skip to content

Commit 8750403

Browse files
authored
Merge pull request #1533 from ales-erjavec/addons-proxy-model-fix
[FIX] canvas/addons: Remove wrong/unnecessary proxy mapping
2 parents 3d2f12e + d03508b commit 8750403

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Orange/canvas/application/addons.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,10 @@ def set_install_projects(self, names):
335335

336336
def __data_changed(self, topleft, bottomright):
337337
rows = range(topleft.row(), bottomright.row() + 1)
338-
proxy = self.__view.model()
339-
map_to_source = proxy.mapToSource
340-
341338
for i in rows:
342-
sourceind = map_to_source(proxy.index(i, 0))
343-
modelitem = self.__model.itemFromIndex(sourceind)
344-
actionitem = self.__model.item(modelitem.row(), 3)
345-
item = self.__items[modelitem.row()]
339+
modelitem = self.__model.item(i, 0)
340+
actionitem = self.__model.item(i, 3)
341+
item = self.__items[i]
346342

347343
state = modelitem.checkState()
348344
flags = modelitem.flags()

0 commit comments

Comments
 (0)