Skip to content

Commit

Permalink
ContinuousPalettesModel: Disable 'category' items via flags
Browse files Browse the repository at this point in the history
Prevent selection in combo box via keyboard up/down arrow navigation.
  • Loading branch information
ales-erjavec committed Mar 16, 2020
1 parent dc2ea48 commit 69bcd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/utils/itemmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def flags(self, index):
if isinstance(item, ContinuousPalette):
return Qt.ItemIsEnabled | Qt.ItemIsSelectable
else:
return Qt.ItemIsEnabled
return Qt.NoItemFlags

def indexOf(self, x):
if isinstance(x, str):
Expand Down

0 comments on commit 69bcd97

Please sign in to comment.