Fixed a warning caused by a Qt deprecation. eric7

Fri, 03 Jun 2022 12:09:02 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 03 Jun 2022 12:09:02 +0200
branch
eric7
changeset 9116
698660ef7350
parent 9115
8800cfd6fbab
child 9117
c6afba2049cf

Fixed a warning caused by a Qt deprecation.

eric7/UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/eric7/UI/UserInterface.py	Thu Jun 02 11:19:50 2022 +0200
+++ b/eric7/UI/UserInterface.py	Fri Jun 03 12:09:02 2022 +0200
@@ -605,7 +605,7 @@
         self.toolProcs = []
         self.__initExternalToolsActions()
         
-        # redirect handling of http and https URLs to ourselves
+        # redirect handling of http, https and file URLs to ourselves
         QDesktopServices.setUrlHandler("file", self.handleUrl)
         QDesktopServices.setUrlHandler("http", self.handleUrl)
         QDesktopServices.setUrlHandler("https", self.handleUrl)
@@ -7536,6 +7536,10 @@
         if not self.viewmanager.closeViewManager():
             return False
         
+        QDesktopServices.unsetUrlHandler("file")
+        QDesktopServices.unsetUrlHandler("http")
+        QDesktopServices.unsetUrlHandler("https")
+        
         if sessionCreated and not self.__disableCrashSession:
             self.__deleteCrashSession()
         

eric ide

mercurial