Skip to content

Commit 8a01b2a

Browse files
authored
Merge pull request biolab#3911 from PrimozGodec/fix-neighborus
[FIX] OWNeighbours fix manual apply for some options
2 parents be34e1d + 36ec169 commit 8a01b2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Orange/widgets/data/owneighbors.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ def __init__(self):
7777
callback=self.recompute)
7878
gui.spin(
7979
box, self, "n_neighbors", label="Number of neighbors:",
80-
step=1, spinType=int, minv=0, maxv=100, callback=self.apply)
80+
step=1, spinType=int, minv=0, maxv=100,
81+
# call apply by gui.auto_commit, pylint: disable=unnecessary-lambda
82+
callback=lambda: self.apply())
8183
gui.checkBox(
8284
box, self, "exclude_reference",
8385
label="Exclude rows (equal to) references",
84-
callback=self.apply)
86+
# call apply by gui.auto_commit, pylint: disable=unnecessary-lambda
87+
callback=lambda: self.apply())
8588

8689
self.apply_button = gui.auto_commit(
8790
self.controlArea, self, "auto_apply", "&Apply", commit=self.apply)

0 commit comments

Comments
 (0)