Skip to content

Commit

Permalink
Merge pull request #3449 from pavlin-policar/feature-statistics-fix
Browse files Browse the repository at this point in the history
[FIX] OWFeatureStatistics: Don't attempt to sort when no data on input
  • Loading branch information
lanzagar authored Dec 10, 2018
2 parents 30a33ab + c633157 commit 751a6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/data/owfeaturestatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def __restore_selection(self):
def __restore_sorting(self):
"""Restore the sort column and order from saved settings."""
sort_column, sort_order = self.sorting
if sort_column < self.model.columnCount():
if self.data is not None and sort_column < self.model.columnCount():
self.model.sort(sort_column, sort_order)
self.table_view.horizontalHeader().setSortIndicator(sort_column, sort_order)

Expand Down

0 comments on commit 751a6c9

Please sign in to comment.