src/eric7/UI/UserInterface.py

branch
eric7
changeset 11096
ac83f4d83f23
parent 11090
f5f5f5803935
child 11118
967a88a16a21
child 11148
15e30f0c76a8
--- a/src/eric7/UI/UserInterface.py	Sun Dec 15 11:43:13 2024 +0100
+++ b/src/eric7/UI/UserInterface.py	Tue Dec 17 10:33:49 2024 +0100
@@ -6715,7 +6715,7 @@
         @param tool dictionary of tool entries
         @type dict
         """
-        proc = QProcess()
+        proc = QProcess(self)
         procData = (None,)
         program = tool["executable"]
         args = []
@@ -6815,11 +6815,12 @@
                         toolProcData[0].replace(text)
                     toolProcData[0].endUndoAction()
 
-        # now delete the exited procs from the list of running processes
+        # now delete the exited processes from the list of running processes
         for proc in exitedProcs:
             self.toolProcs.remove(proc)
             t = self.tr("Process '{0}' has exited.\n").format(proc[0])
             self.appendToStdout(t)
+            proc.deleteLater()
 
     def __showPythonDoc(self):
         """

eric ide

mercurial