def accept(self):
    '\n        Override the accept method so that we can confirm saving an\n        invalid configuration.\n        '
    result = QtWidgets.QMessageBox.Yes
    if (not self.validate()):
        result = QtWidgets.QMessageBox.warning(self, 'Invalid Configuration', "This configuration is invalid.  Unpredictable behaviour may result if you choose 'Yes', are you sure you want to save this configuration?)", (QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No), QtWidgets.QMessageBox.No)
    if (result == QtWidgets.QMessageBox.Yes):
        QtWidgets.QDialog.accept(self)
Override the accept method so that we can confirm saving an
invalid configuration.
def accept(self):
    '\n        Override the accept method so that we can confirm saving an\n        invalid configuration.\n        '
    result = QtWidgets.QMessageBox.Yes
    if (not self.validate()):
        result = QtWidgets.QMessageBox.warning(self, 'Invalid Configuration', "This configuration is invalid.  Unpredictable behaviour may result if you choose 'Yes', are you sure you want to save this configuration?)", (QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No), QtWidgets.QMessageBox.No)
    if (result == QtWidgets.QMessageBox.Yes):
        QtWidgets.QDialog.accept(self)