Changed the logic for another occurance of focusChanged.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 06 Oct 2012 19:07:04 +0200
changeset 2114
c07f0cb40b18
parent 2110
eff6b085ea89
child 2115
4f685709ad29

Changed the logic for another occurance of focusChanged.

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
@@ -5215,6 +5215,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