src/eric7/Debugger/WatchPointModel.py

branch
eric7
changeset 11046
478b4ce023dd
parent 11037
adfda913834a
child 11090
f5f5f5803935
--- a/src/eric7/Debugger/WatchPointModel.py	Sat Nov 09 17:09:09 2024 +0100
+++ b/src/eric7/Debugger/WatchPointModel.py	Sat Nov 09 17:23:04 2024 +0100
@@ -248,7 +248,10 @@
         @type list of (str, str, bool, bool, int)
         """
         # eliminate redundant break points
-        newWatchpoints = [w for w in set(watchpoints) if w not in self.watchpoints]
+        newWatchpoints = []
+        for watchpoint in watchpoints:
+            if watchpoint not in self.watchpoints and watchpoint not in newWatchpoints:
+                newWatchpoints.append(watchpoint)
 
         if newWatchpoints:
             cnt = len(self.watchpoints)

eric ide

mercurial