forked from openlp/openlp
comment fix
This commit is contained in:
parent
adb765f3fa
commit
90b806c6a4
@ -168,8 +168,8 @@ class AlertForm(QtGui.QDialog, Ui_AlertDialog):
|
|||||||
The alert text (unicode).
|
The alert text (unicode).
|
||||||
"""
|
"""
|
||||||
if text:
|
if text:
|
||||||
# The ParameterEdit field is not empty, but we have not found '<>'
|
# We found '<>' in the alert text, but the ParameterEdit field is
|
||||||
# in the alert text.
|
# empty.
|
||||||
if text.find(u'<>') != -1 and not self.ParameterEdit.text() and \
|
if text.find(u'<>') != -1 and not self.ParameterEdit.text() and \
|
||||||
QtGui.QMessageBox.question(self, translate(
|
QtGui.QMessageBox.question(self, translate(
|
||||||
'AlertPlugin.AlertForm', 'No Parameter found'),
|
'AlertPlugin.AlertForm', 'No Parameter found'),
|
||||||
@ -180,8 +180,8 @@ class AlertForm(QtGui.QDialog, Ui_AlertDialog):
|
|||||||
QtGui.QMessageBox.Yes)) == QtGui.QMessageBox.No:
|
QtGui.QMessageBox.Yes)) == QtGui.QMessageBox.No:
|
||||||
self.ParameterEdit.setFocus()
|
self.ParameterEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
# We found '<>' in the alert text, but the ParameterEdit field it
|
# The ParameterEdit field is not empty, but we have not found '<>'
|
||||||
# empty.
|
# in the alert text.
|
||||||
elif text.find(u'<>') == -1 and self.ParameterEdit.text() and \
|
elif text.find(u'<>') == -1 and self.ParameterEdit.text() and \
|
||||||
QtGui.QMessageBox.question(self, translate(
|
QtGui.QMessageBox.question(self, translate(
|
||||||
'AlertPlugin.AlertForm', 'No Placeholder found'),
|
'AlertPlugin.AlertForm', 'No Placeholder found'),
|
||||||
|
Loading…
Reference in New Issue
Block a user