Changed the logic for another occurance of focusChanged. 5_2_x

Sat, 06 Oct 2012 19:07:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 06 Oct 2012 19:07:04 +0200
branch
5_2_x
changeset 2116
5edbd90cf9e6
parent 2113
91ad478a4ad7
child 2117
997d21f331c6

Changed the logic for another occurance of focusChanged.
(grafted from c07f0cb40b18e5d844e3db472846b1613de3e340)

E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5SideBar.py	Sat Oct 06 18:49:58 2012 +0200
+++ b/E5Gui/E5SideBar.py	Sat Oct 06 19:07:04 2012 +0200
@@ -594,3 +594,13 @@
         """
         if self.__autoHide and not self.__hasFocus and not self.isMinimized():
             self.shrink()
+    
+    def shutdown(self):
+        """
+        Public method to shut down the object.
+        
+        This method does some preparations so the object can be deleted properly.
+        It disconnects from the focusChanged signal in order to avoid trouble later
+        on.
+        """
+        e5App().focusChanged[QWidget, QWidget].disconnect(self.__appFocusChanged)
--- a/UI/UserInterface.py	Sat Oct 06 18:49:58 2012 +0200
+++ b/UI/UserInterface.py	Sat Oct 06 19:07:04 2012 +0200
@@ -5547,6 +5547,10 @@
         
         self.pluginManager.doShutdown()
         
+        if self.layout == "Sidebars":
+            self.leftSidebar.shutdown()
+            self.bottomSidebar.shutdown()
+        
         if self.SAServer is not None:
             self.SAServer.shutdown()
             self.SAServer = None

eric ide

mercurial