Skip to content

Commit

Permalink
Fix compatibility with PyQt6
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 23, 2022
1 parent e6600c6 commit 06e12de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo/qt/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def update_widget(self, value):
if isinstance(choice, ChoiceSeparator):
item = combo_model.item(index)
palette = self._widget.palette()
item.setFlags(Qt.ItemFlags(int(item.flags()) & int(~(Qt.ItemIsSelectable | Qt.ItemIsEnabled))))
item.setFlags(item.flags() & ~(Qt.ItemIsSelectable | Qt.ItemIsEnabled))
item.setData(palette.color(QtGui.QPalette.Disabled, QtGui.QPalette.Text))

choices_updated = True
Expand Down

0 comments on commit 06e12de

Please sign in to comment.