diff -r 5e5e57bf09ed -r 88cb0838c90d Project/MakePropertiesDialog.py --- a/Project/MakePropertiesDialog.py Sun Apr 15 12:04:17 2018 +0200 +++ b/Project/MakePropertiesDialog.py Tue Apr 17 19:53:46 2018 +0200 @@ -9,7 +9,7 @@ from __future__ import unicode_literals -from PyQt5.QtWidgets import QDialog +from PyQt5.QtWidgets import QDialog, QDialogButtonBox from E5Gui.E5PathPicker import E5PathPickerModes @@ -44,6 +44,8 @@ self.makefilePicker.setFilters(self.tr( "Makefiles (*makefile Makefile *.mak);;All Files (*)")) + self.makeTargetEdit.textChanged.connect(self.__updateOkButton) + self.initDialog() msh = self.minimumSizeHint() @@ -66,6 +68,15 @@ self.makeTargetEdit.setText(makeData["MakeTarget"]) self.makeParametersEdit.setText(makeData["MakeParameters"]) self.testOnlyCheckBox.setChecked(makeData["MakeTestOnly"]) + + self.__updateOkButton() + + def __updateOkButton(self): + """ + Private slot to update the enabled state of the OK button. + """ + self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool( + self.makeTargetEdit.text())) def storeData(self): """