eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesDeinitDialog.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7256:4ef3b78ebb4e 7257:c4d0cac9b5c9
37 37
38 def __updateOK(self): 38 def __updateOK(self):
39 """ 39 """
40 Private slot to update the state of the OK button. 40 Private slot to update the state of the OK button.
41 """ 41 """
42 enable = self.allCheckBox.isChecked() or \ 42 enable = (
43 self.allCheckBox.isChecked() or
43 len(self.submodulesList.selectedItems()) > 0 44 len(self.submodulesList.selectedItems()) > 0
45 )
44 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 46 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
45 47
46 @pyqtSlot(bool) 48 @pyqtSlot(bool)
47 def on_allCheckBox_toggled(self, checked): 49 def on_allCheckBox_toggled(self, checked):
48 """ 50 """

eric ide

mercurial