Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Orange/widgets/unsupervised/owhierarchicalclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ def select_item(self, item, state):
if item in self._selection:
if state == False:
self._remove_selection(item)
self._re_enumerate_selections()
self.selectionChanged.emit()
else:
# If item is already inside another selected item,
Expand All @@ -455,11 +456,11 @@ def select_item(self, item, state):

if state:
self._add_selection(item)
self._re_enumerate_selections()

elif item in self._selection:
self._remove_selection(item)

self._re_enumerate_selections()
self.selectionChanged.emit()

def _add_selection(self, item):
Expand Down Expand Up @@ -499,8 +500,6 @@ def _remove_selection(self, item):

del self._selection[item]

self._re_enumerate_selections()

def _selected_sub_items(self, item):
"""Return all selected subclusters under item."""
def branches(item):
Expand Down