Skip to content

Commit

Permalink
Merge pull request #4289 from janezd/fix-rank-settings
Browse files Browse the repository at this point in the history
[FIX] Fix saving workflows that contain a Rank widget
  • Loading branch information
ajdapretnar authored Dec 30, 2019
2 parents 9acbb37 + 04a7108 commit 3a2e8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/data/owrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def updateScores(self):

def on_select(self):
# Save indices of attributes in the original, unsorted domain
self.selected_rows = self.ranksModel.mapToSourceRows([
i.row() for i in self.ranksView.selectionModel().selectedRows(0)])
self.selected_rows = list(self.ranksModel.mapToSourceRows([
i.row() for i in self.ranksView.selectionModel().selectedRows(0)]))
self.commit()

def setSelectionMethod(self, method):
Expand Down

0 comments on commit 3a2e8fc

Please sign in to comment.