224 .format(Utilities.html_encode(cond)) |
225 .format(Utilities.html_encode(cond)) |
225 else: |
226 else: |
226 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" |
227 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" |
227 """ for the variable <b>{1}</b> already exists.</p>""")\ |
228 """ for the variable <b>{1}</b> already exists.</p>""")\ |
228 .format(special, Utilities.html_encode(cond)) |
229 .format(special, Utilities.html_encode(cond)) |
229 QMessageBox.warning(None, |
230 E5MessageBox.warning(self, |
230 self.trUtf8("Watch expression already exists"), |
231 self.trUtf8("Watch expression already exists"), |
231 msg) |
232 msg) |
232 |
233 |
233 return duplicate |
234 return duplicate |
234 |
235 |