241 else: |
241 else: |
242 msg = self.trUtf8( |
242 msg = self.trUtf8( |
243 """<p>A watch expression '<b>{0}</b>'""" |
243 """<p>A watch expression '<b>{0}</b>'""" |
244 """ for the variable <b>{1}</b> already exists.</p>""")\ |
244 """ for the variable <b>{1}</b> already exists.</p>""")\ |
245 .format(special, Utilities.html_encode(cond)) |
245 .format(special, Utilities.html_encode(cond)) |
246 E5MessageBox.warning(self, |
246 E5MessageBox.warning( |
|
247 self, |
247 self.trUtf8("Watch expression already exists"), |
248 self.trUtf8("Watch expression already exists"), |
248 msg) |
249 msg) |
249 |
250 |
250 return duplicate |
251 return duplicate |
251 |
252 |