eric6/Debugger/DebugUI.py

branch
multi_processing
changeset 7392
b6674724612a
parent 7389
770ffcb88be5
child 7397
f8d2f6dd6636
diff -r 052ce4cf06c6 -r b6674724612a eric6/Debugger/DebugUI.py
--- a/eric6/Debugger/DebugUI.py	Sun Feb 02 19:29:56 2020 +0100
+++ b/eric6/Debugger/DebugUI.py	Mon Feb 03 19:54:02 2020 +0100
@@ -126,6 +126,7 @@
         debugServer.clientGone.connect(self.__clientGone)
         debugServer.clientLine.connect(self.__clientLine)
         debugServer.clientExit.connect(self.__clientExit)
+        debugServer.lastClientExited.connect(self.__lastClientExited)
         debugServer.clientSyntaxError.connect(self.__clientSyntaxError)
         debugServer.clientException.connect(self.__clientException)
         debugServer.clientSignal.connect(self.__clientSignal)
@@ -1030,10 +1031,6 @@
         @param quiet flag indicating to suppress exit info display
         @type bool
         """
-        self.viewmanager.exit()
-
-        self.__resetUI()
-        
         if not quiet:
             if (
                 not Preferences.getDebugger("SuppressClientExit") or
@@ -1087,7 +1084,14 @@
                             ' {1}.\n{2}\n').format(
                             Utilities.normabspath(self.ui.currentProg), status,
                             info))
-
+    
+    def __lastClientExited(self):
+        """
+        Private slot handling the exit of the last client.
+        """
+        self.viewmanager.exit()
+        self.__resetUI()
+    
     def __clientSyntaxError(self, message, filename, lineNo, characterNo):
         """
         Private method to handle a syntax error in the debugged program.

eric ide

mercurial