@ -65,22 +67,36 @@ class PromptWidget(QtWidgets.QDialog):
layout.addWidget(self.comboBox)
errorString=QtCore.QCoreApplication.translate("PromptWidget","Command not accepted!<br>Parameters, --switches and relative paths are not allowed.<br>Use nsm-proxy or write a starter-script instead.")
errorString=QtCore.QCoreApplication.translate("PromptWidget","Command not found or not accepted!<br>Parameters, --switches and relative paths are not allowed.<br>Use nsm-proxy or write a starter-script instead.")
@ -90,8 +106,8 @@ class PromptWidget(QtWidgets.QDialog):
curText=self.comboBox.currentText()
ifnotcurTextorcurText=="":#TODO: qt weirdness. This is a case when focus is lost from a valid entry. The field is filled from a chosen value, from the list. But it says " ".
#Do not show the errorLabel. This is a qt bug or so.
return
return
ifcurTextinPromptWidget.wordlist:
api.clientAdd(curText)
logger.info(f"Prompt accepted {curText} and will send it to clientAdd")