eric6/Debugger/BreakPointViewer.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
236 from .EditBreakpointDialog import EditBreakpointDialog 236 from .EditBreakpointDialog import EditBreakpointDialog
237 237
238 dlg = EditBreakpointDialog((self.fnHistory[0], None), None, 238 dlg = EditBreakpointDialog((self.fnHistory[0], None), None,
239 self.condHistory, self, modal=1, 239 self.condHistory, self, modal=1,
240 addMode=1, filenameHistory=self.fnHistory) 240 addMode=1, filenameHistory=self.fnHistory)
241 if dlg.exec_() == QDialog.Accepted: 241 if dlg.exec() == QDialog.Accepted:
242 fn, line, cond, temp, enabled, count = dlg.getAddData() 242 fn, line, cond, temp, enabled, count = dlg.getAddData()
243 if fn is not None: 243 if fn is not None:
244 if fn in self.fnHistory: 244 if fn in self.fnHistory:
245 self.fnHistory.remove(fn) 245 self.fnHistory.remove(fn)
246 self.fnHistory.insert(0, fn) 246 self.fnHistory.insert(0, fn)
289 289
290 from .EditBreakpointDialog import EditBreakpointDialog 290 from .EditBreakpointDialog import EditBreakpointDialog
291 dlg = EditBreakpointDialog( 291 dlg = EditBreakpointDialog(
292 (fn, line), (cond, temp, enabled, count), 292 (fn, line), (cond, temp, enabled, count),
293 self.condHistory, self, modal=True) 293 self.condHistory, self, modal=True)
294 if dlg.exec_() == QDialog.Accepted: 294 if dlg.exec() == QDialog.Accepted:
295 cond, temp, enabled, count = dlg.getData() 295 cond, temp, enabled, count = dlg.getData()
296 if cond: 296 if cond:
297 if cond in self.condHistory: 297 if cond in self.condHistory:
298 self.condHistory.remove(cond) 298 self.condHistory.remove(cond)
299 self.condHistory.insert(0, cond) 299 self.condHistory.insert(0, cond)

eric ide

mercurial