UserInterface: added code to deal with situations where the eric6_browser process dies prematurely.

Fri, 19 Feb 2021 17:34:33 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 19 Feb 2021 17:34:33 +0100
changeset 8116
ef415e4efd70
parent 8115
cef34b4ee310
child 8117
aaa5e0eacd4e

UserInterface: added code to deal with situations where the eric6_browser process dies prematurely.

eric6/UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/eric6/UI/UserInterface.py	Thu Feb 18 19:57:41 2021 +0100
+++ b/eric6/UI/UserInterface.py	Fri Feb 19 17:34:33 2021 +0100
@@ -5995,6 +5995,9 @@
                 elif res == 0:
                     # successful
                     break
+                elif res == -1:
+                    # web browser did not start
+                    continue
             else:
                 return False
             
@@ -6004,7 +6007,7 @@
         else:
             clientArgs.append("--newtab={0}".format(home))
         
-        if clientArgs:
+        if clientArgs and self.__webBrowserClient:
             self.__webBrowserClient.processArgs(clientArgs, disconnect=False)
         
         return True

eric ide

mercurial