1189 else: |
1189 else: |
1190 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" |
1190 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" |
1191 """ for the variable <b>{1}</b> already exists.</p>""")\ |
1191 """ for the variable <b>{1}</b> already exists.</p>""")\ |
1192 .format(special, |
1192 .format(special, |
1193 Utilities.html_encode(cond)) |
1193 Utilities.html_encode(cond)) |
1194 QMessageBox.warning(None, |
1194 E5MessageBox.warning(self, |
1195 self.trUtf8("Watch expression already exists"), |
1195 self.trUtf8("Watch expression already exists"), |
1196 msg) |
1196 msg) |
1197 model.deleteWatchPointByIndex(index) |
1197 model.deleteWatchPointByIndex(index) |
1198 else: |
1198 else: |
1199 model.setWatchPointByIndex(index, cond, special, |
1199 model.setWatchPointByIndex(index, cond, special, |