Missing fields errors were not notified

This commit is contained in:
Alberto Sottile 2018-04-28 01:01:53 +02:00
parent f85d40a44b
commit e9a194b36e
2 changed files with 2 additions and 1 deletions

View File

@ -357,7 +357,7 @@ class ConfigurationGetter(object):
self._validateArguments()
except InvalidConfigValue as e:
try:
for key, value in list(self._promptForMissingArguments(e.message).items()):
for key, value in list(self._promptForMissingArguments(e).items()):
self._config[key] = value
self._checkConfig()
except:

View File

@ -660,6 +660,7 @@ class ConfigDialog(QtWidgets.QDialog):
self.basicOptionsFrame = QtWidgets.QFrame()
self.basicOptionsLayout = QtWidgets.QVBoxLayout()
if error:
error = str(error)
self.errorLabel = QLabel(self)
if error[:1] != constants.ERROR_MESSAGE_MARKER:
self.errorLabel.setStyleSheet(constants.STYLE_ERRORLABEL)