src/eric7/Debugger/StartDialog.py

branch
eric7
changeset 11006
a671918232f3
parent 10972
2178804b1df8
child 11019
27cd57e98461
child 11090
f5f5f5803935
--- a/src/eric7/Debugger/StartDialog.py	Fri Oct 25 09:47:48 2024 +0200
+++ b/src/eric7/Debugger/StartDialog.py	Fri Oct 25 17:58:59 2024 +0200
@@ -436,15 +436,15 @@
                     history = [combo.itemText(idx) for idx in range(combo.count())]
 
             if history:
-                dlg = StartHistoryEditDialog(history, self)
-            if dlg.exec() == QDialog.DialogCode.Accepted:
-                history = dlg.getHistory()
-                combo = widgets[historiesIndex]
-                if combo:
-                    combo.clear()
-                    combo.addItems(history)
+                dlg = StartHistoryEditDialog(history, parent=self)
+                if dlg.exec() == QDialog.DialogCode.Accepted:
+                    history = dlg.getHistory()
+                    combo = widgets[historiesIndex]
+                    if combo:
+                        combo.clear()
+                        combo.addItems(history)
 
-                    self.__historiesModified = True
+                        self.__historiesModified = True
 
     def historiesModified(self):
         """

eric ide

mercurial