src/eric7/EricWidgets/EricListSelectionDialog.py

branch
eric7
changeset 9768
e2b622afb5ff
parent 9653
e67609152c5e
child 10215
d476667171a1
equal deleted inserted replaced
9767:2eed840795c0 9768:e2b622afb5ff
98 @type QListWidgetItem 98 @type QListWidgetItem
99 """ 99 """
100 if self.__isCheckBoxSelection: 100 if self.__isCheckBoxSelection:
101 if itm.checkState() == Qt.CheckState.Checked: 101 if itm.checkState() == Qt.CheckState.Checked:
102 self.__checkCount += 1 102 self.__checkCount += 1
103 else: 103 elif self.__checkCount > 0:
104 self.__checkCount -= 1 104 self.__checkCount -= 1
105 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 105 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
106 self.__checkCount > 0 106 self.__checkCount > 0
107 ) 107 )
108 108

eric ide

mercurial