--- a/src/eric7/EricWidgets/EricListSelectionDialog.py Wed Feb 15 17:45:10 2023 +0100 +++ b/src/eric7/EricWidgets/EricListSelectionDialog.py Wed Feb 15 18:00:20 2023 +0100 @@ -100,7 +100,7 @@ if self.__isCheckBoxSelection: if itm.checkState() == Qt.CheckState.Checked: self.__checkCount += 1 - else: + elif self.__checkCount > 0: self.__checkCount -= 1 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( self.__checkCount > 0