Skip to content

Commit

Permalink
Destroy vizrank when parent widget is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Mar 17, 2017
1 parent 5d4405c commit bc5ae77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orangecontrib/prototypes/widgets/owcorrelations.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def _vizrank_select(self):
model = self.vizrank.rank_table.model()
selection = QItemSelection()
names = sorted(x.name for x in self.selection)
if model is None:
return
for i in range(model.rowCount()):
if sorted(x.name for x in model.data(model.index(i, 0),
CorrelationRank._AttrRole)) \
Expand Down

0 comments on commit bc5ae77

Please sign in to comment.