Skip to content

Commit

Permalink
Update itemselect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Oct 29, 2024
1 parent 219c751 commit 4900227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymodaq_gui/parameter/pymodaq_ptypes/itemselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_value(self):
# Clean up list with non existing entries
[self.selItems.remove(item) for item in self.selItems if item not in allitems]
for item in self.all_items():
if item.checkState() != 0: # Item is selected
if item.checkState() != QtCore.Qt.Unchecked: # Item is selected
if item.text() not in self.selItems: # if item not in list then add it
self.selItems.append(item.text())
else: # Item is not selected
Expand Down

0 comments on commit 4900227

Please sign in to comment.