src/eric7/Debugger/WatchPointViewer.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9573
9960d19d66b5
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
283 """ 283 """
284 Private slot to edit a watch expression. 284 Private slot to edit a watch expression.
285 285
286 @param index index of watch expression to be edited (QModelIndex) 286 @param index index of watch expression to be edited (QModelIndex)
287 """ 287 """
288 from .EditWatchpointDialog import EditWatchpointDialog
289
288 sindex = self.__toSourceIndex(index) 290 sindex = self.__toSourceIndex(index)
289 if sindex.isValid(): 291 if sindex.isValid():
290 wp = self.__model.getWatchPointByIndex(sindex) 292 wp = self.__model.getWatchPointByIndex(sindex)
291 if not wp: 293 if not wp:
292 return 294 return
293 295
294 cond, special, temp, enabled, count = wp[:5] 296 cond, special, temp, enabled, count = wp[:5]
295
296 from .EditWatchpointDialog import EditWatchpointDialog
297 297
298 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self) 298 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self)
299 if dlg.exec() == QDialog.DialogCode.Accepted: 299 if dlg.exec() == QDialog.DialogCode.Accepted:
300 cond, temp, enabled, count, special = dlg.getData() 300 cond, temp, enabled, count, special = dlg.getData()
301 if not self.__findDuplicates(cond, special, True, sindex): 301 if not self.__findDuplicates(cond, special, True, sindex):

eric ide

mercurial