src/eric7/Debugger/BreakPointModel.py

branch
eric7
changeset 11066
d71eab9be477
parent 11046
478b4ce023dd
child 11090
f5f5f5803935
equal deleted inserted replaced
11065:381afdad9614 11066:d71eab9be477
287 condition, temporary flag, enabled flag and ignore count each 287 condition, temporary flag, enabled flag and ignore count each
288 @type list of (str, int, str, bool, bool, int) 288 @type list of (str, int, str, bool, bool, int)
289 """ 289 """
290 # eliminate redundant break points 290 # eliminate redundant break points
291 newBreakpoints = [] 291 newBreakpoints = []
292 for breakpoint in breakpoints: 292 for breakpointToAdd in breakpoints:
293 if breakpoint not in self.breakpoints and breakpoint not in newBreakpoints: 293 if (
294 newBreakpoints.append(breakpoint) 294 breakpointToAdd not in self.breakpoints
295 and breakpointToAdd not in newBreakpoints
296 ):
297 newBreakpoints.append(breakpointToAdd)
295 298
296 if newBreakpoints: 299 if newBreakpoints:
297 cnt = len(self.breakpoints) 300 cnt = len(self.breakpoints)
298 self.beginInsertRows(QModelIndex(), cnt, cnt + len(newBreakpoints) - 1) 301 self.beginInsertRows(QModelIndex(), cnt, cnt + len(newBreakpoints) - 1)
299 self.breakpoints += newBreakpoints 302 self.breakpoints += newBreakpoints

eric ide

mercurial