Skip to content

Commit

Permalink
fix: fix host requirements combo box checkability on Linux and macOS (#…
Browse files Browse the repository at this point in the history
…590)

Signed-off-by: Justin Sawatzky <[email protected]>
  • Loading branch information
justinsaws authored Feb 5, 2025
1 parent fa269dd commit c4e6cdc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/deadline/client/ui/widgets/host_requirements_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,19 +1089,11 @@ class OptionalMultiSelectComboBox(QComboBox):

def __init__(self, items: List[str], parent=None):
super().__init__(parent=parent)
self.view().pressed.connect(self.handleItemPressed)
self.model().itemChanged.connect(self.handleModelChanged)
self.setPlaceholderText("-")
self.addItems(items)
self._updateLineEdit()

def handleItemPressed(self, index):
item = self.model().itemFromIndex(index)
if item.checkState() == Qt.Checked:
item.setCheckState(Qt.Unchecked)
else:
item.setCheckState(Qt.Checked)

def handleModelChanged(self, item):
self._updateLineEdit()

Expand Down

0 comments on commit c4e6cdc

Please sign in to comment.