Skip to content

Commit

Permalink
Merge pull request #4538 from ales-erjavec/fixes/palette-combo-box
Browse files Browse the repository at this point in the history
[FIX] ContinuousPalettesModel: Disable 'category' items via `flags`
  • Loading branch information
janezd authored Mar 16, 2020
2 parents 746df19 + 69bcd97 commit 3918955
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 3918955

Please sign in to comment.